public IActionResult GetAppointmentCodes() { try { return(Success(_mapper.Map <List <AppointmentCodeViewModel> >(_service.GetAppointmentSchedulerConfirmationTypes()))); } catch (ValidationException e) { return(Error <List <AppointmentCodeViewModel> >(e)); } }
public IActionResult GetAppointmentCodes() { return(Success(_service.GetAppointmentSchedulerConfirmationTypes())); }