Esempio n. 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");
        }
Esempio n. 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"));
        }