asp.net core redirecttoaction with parameters

Code Example - asp.net core redirecttoaction with parameters

                
                        RedirectToAction("Action", "Controller" ,new { id });
                    
                
 

redirecttoaction not sending id

                        
                                return RedirectToAction("IngredientIndex", new { id = id });
                            
                        
 

Related code examples