Exemplo n.º 1
0
        public ActionResult <DentistViewModel> GetCurrentDentist()
        {
            var dentist = _service.GetCurrent();

            if (dentist == null)
            {
                return(NotFound());
            }

            return(DentistMapper.DTOtoDentistViewModel(dentist));
        }
Exemplo n.º 2
0
 public ActionResult <IEnumerable <DentistViewModel> > GetDentists()
 {
     return(_service.GetAll().Select(x => DentistMapper.DTOtoDentistViewModel(x)).ToArray());
 }