public ActionResult DeleteTask(int id) { var task = _repository.GetTaskById(id); if (task == null) { return(NotFound()); } _repository.DeleteTask(task); _repository.SaveChanges(); return(NoContent()); }
public void DeleteTask(Guid id) { _taskRepo.DeleteTask(id); }
public void DeleteTask(Task task) { _taskRepo.DeleteTask(task); }