public IActionResult Delete(int?taskId) { if (taskId != null) { repositoryHandler.Delete(new QTask { Id = taskId.Value }); } return(RedirectToAction("Index")); }
public IActionResult Delete(int?employyeId) { if (employyeId != null) { repositoryHandler.Delete(new Employees { Id = employyeId.Value }); } return(RedirectToAction("Index")); }