public async Task <ActionResult> newCita([FromBody] CreateCitaDTO model)
        {
            string txt = "Create cita medica";

            using (var transaction = context.Database.BeginTransaction())
            {
                logger.LogInformation("BeginTransaction {0} ", txt);
                try
                {
                    var cita = await fundabiem.NewCita(model);

                    transaction.Commit();
                    logger.LogInformation("Commit Transaction {0} ", txt);
                    return(new CreatedAtRouteResult("ObtenerCita", new { id = cita.IdCita }, cita));
                }catch (Exception ex)
                {
                    transaction.Rollback();
                    logger.LogError("RollBack transaction {0} ", txt);
                    logger.LogError("Error ==>> {0} ", ex.ToString());
                    return(BadRequest("No se completo la accion " + txt));
                }
            }
        }