public ActionResult EditSection(Section section) { sectionservice service = new sectionservice(); service.updatesection(section); return(View("AddSection")); }
public ActionResult AddSection(Section section) { sectionservice service = new sectionservice(); service.savesection(section); return(View()); }
public ActionResult EditSection(int id) { sectionservice service = new sectionservice(); var section = service.getbyid(id); return(View(section)); }
// GET: Section // GET: Section public ActionResult listingsection() { sectionservice sectionservice = new sectionservice(); var listsections = sectionservice.getsection(); return(View(listsections)); }