Example #1
0
        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");
        }
Example #2
0
        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"));
        }