Exemple #1
0
        public async Task <IActionResult> GetSpecialists()
        {
            var specialists = await repository.GetSpecialists();

            var specialistsResources = mapper.Map <List <Specialist>, List <SaveSpecialistResource> >(specialists.ToList());

            return(Ok(specialistsResources));
        }
        public async Task <IActionResult> GetSpecialist()
        {
            var specialists = await _specialistRepository.GetSpecialists();

            return(Ok(specialists));
        }