public IActionResult Delete(int id) { if (employeeRespository.Delete(id)) { return(RedirectToAction("Index")); } return(View()); }
public IActionResult Delete(int id) { _employeeRespository.Delete(id); return(RedirectToAction("index")); }