public IActionResult Delete(DeleteViewModel model, int id) { if (ModelState.IsValid) { unitRepository.Delete(id); return(RedirectToAction("list")); } return(View()); }
public IActionResult Delete(DeleteViewModel model, int id) { if (ModelState.IsValid) { unitRepository.Delete(id); return(RedirectToAction("list")); } return(View()); }