public void Delete(TaskItem item) { _TaskService.Delete(item); }
public IActionResult Delete(TaskItem taskItem) { ITaskItemService.Delete(taskItem.ID); return(RedirectToAction(nameof(TaskList))); }