public ActionResult Create(Student collection) // Create method to add something in the student table in the database { try { // TODO: Add insert logic here Sobj.Insert(collection); Sobj.save(); return(RedirectToAction("Index")); } catch { return(View()); } }
public ActionResult Create(Course collection) // Create method to add something in the student table in the database { try { Cobj.Insert(collection); Cobj.save(); return(RedirectToAction("Index")); } catch { return(View()); } }
public ActionResult Create(Enrollment collection) { try { // TODO: Add insert logic here Eobj.Insert(collection); Eobj.save(); return(RedirectToAction("Index")); } catch { return(View()); } }