public IActionResult Edit(int id, [Bind("DepartmentId,Name")] Department department)
 {
     if (ModelState.IsValid)
     {
         var dept = _dept.Update(department);
         return(RedirectToAction("Index"));
     }
     else
     {
         return(View());
     }
 }
Ejemplo n.º 2
0
 public bool Update(E_Model.Dept model)
 {
     return(dal.Update(model));
 }