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