public async Task <ActionResult> newEvolucionMedica(CreateEvolucionMedicaDTO model) { logger.LogInformation("Creating resource: EvolucionMedica by user {0}", getUser()); try { var evolucionMedica = await fundabiem.newEvolucionMedica(model); return(new CreatedAtRouteResult("ObtenerEvolucion", new { id = evolucionMedica.idEvolucionMedica }, evolucionMedica)); } catch (Exception ex) { logger.LogInformation("An error has ocurred: EvolucionMedica"); logger.LogError(ex.ToString()); return(BadRequest()); } }