public async Task <ActionResult <Medic> > Get(string crm) { if (string.IsNullOrWhiteSpace(crm)) { return(NotFound()); } return(await _medicService.FindByCrm(crm)); }
public async Task <ActionResult <MedicDTO> > Get(string crm) { if (string.IsNullOrWhiteSpace(crm)) { return(NotFound()); } Medic medic; medic = await _medicService.FindByCrm(crm); return(Ok(_mapper.Map <Medic, MedicDTO>(medic))); }
public async void InsertName(string crm) { m_medic = await m_medicService.FindByCrm(crm); }
public async void ChooseMedic(string crm) { _medic = await _medicService.FindByCrm(crm); }