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