Exemple #1
0
        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)));
        }
Exemple #3
0
 public async void InsertName(string crm)
 {
     m_medic = await m_medicService.FindByCrm(crm);
 }
Exemple #4
0
 public async void ChooseMedic(string crm)
 {
     _medic = await _medicService.FindByCrm(crm);
 }