public ActionResult AddNew(string name, int age, long Id) { StudentService objStudentService = new StudentService(); objStudentService.AddNew(name, age, Id, 1); return(RedirectToAction(nameof(Index))); //return Redirect("/Student"); }
public ActionResult AddNew(string name, int age, long minZuId) { StudentService ss = new StudentService(); ss.AddNew(name, age, minZuId, 1); //return RedirectToAction("Index"); //return RedirectToAction(nameof(Index)); return(Redirect("/Student/Index")); }