public ActionResult Edit_Departments(TBL_R_DEPT objdept) { db.Entry(objdept).State = System.Data.Entity.EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Departments")); }
public ActionResult Add_Departments(TBL_R_DEPT objdept) { db.TBL_R_DEPT.Add(objdept); db.SaveChanges(); return(RedirectToAction("Departments")); }