public ActionResult Add_course(Course ob) { ModelState.Remove("ID"); if (ModelState.IsValid) { CourseBL.Add(ob); return(RedirectToAction("Course")); } else { return(View()); } }
public ActionResult Add_course(Course ob) { ModelState.Remove("ID"); if (ModelState.IsValid) { CourseBL.Add(ob); return(RedirectToAction("Course")); } else { return(View()); } }