public IActionResult DeleteById(long id) { var todo = _service.GetById(id); if (todo == null) { return(NotFound()); } _service.DeleteById(id); return(new NoContentResult()); }
public IActionResult DeleteById(long id) { var todo = _service.GetById(id); if (todo == null) { return(NotFound()); } _service.DeleteById(id); return(new NoContentResult()); }