public IActionResult Put(int id, [FromBody] RegionModel regionModel) { try { Region region = regionModel.ToEntity(); region.Id = id; logica.ActualizarRegion(region); return(Ok()); } catch (EntidadNoExisteExcepcion) { return(NotFound("No existe esa region")); } }