public IActionResult Delete(int id) { try { //Prato model = _service.GetOne(id); _service.Delete(id); return(NoContent()); } catch (Exception e) { return(BadRequest(e.Message)); } }