public async Task <Cita> findByIdAsync(long id)
 {
     try {
         return(await citaRepo.GetCitaAsync(id));
     } catch (Exception) {
         return(null);
     }
 }
Пример #2
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);
            }
        }