Exemple #1
0
        public async Task <long?> saveAsync(Diagnostico diag)
        {
            try {
                Cita c = await citaRepo.GetCitaAsync(diag.citaId);

                diag.cita = c;
                return(await diagRepo.CreateDiagnosticoAsync(diag));
            } catch (Exception) {
                return(null);
            }
        }