public ActionResult <DentistViewModel> GetCurrentDentist() { var dentist = _service.GetCurrent(); if (dentist == null) { return(NotFound()); } return(DentistMapper.DTOtoDentistViewModel(dentist)); }
public ActionResult <IEnumerable <DentistViewModel> > GetDentists() { return(_service.GetAll().Select(x => DentistMapper.DTOtoDentistViewModel(x)).ToArray()); }