public async Task <IActionResult> DeleteProducto([FromRoute] int id) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } if (!await productoDAO.BorraAsync(id)) { return(StatusCode(productoDAO.customError.StatusCode, productoDAO.customError.Message)); } Id = id; return(Ok()); }