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