private IActionResult Delete(int ID) { var isDeleted = repository.DeleteEntity(ID); if (isDeleted) { return(NoContent()); } else { return(NotFound()); } }