public IActionResult Delete([FromRoute] int id) { try { service.DeleteById(id); return(NoContent()); } catch (Exception) { return(NotFound()); } }