Пример #1
0
        public async Task <ActionResult <ICollection <EducationBasicInfoResponse> > > GetByName(string name)
        {
            ICollection <EducationBasicInfoServiceModel> educations = await _educationService.GetBasicInfoByAutofillByName(name);

            ICollection <EducationBasicInfoResponse> educationsResponse = _mapper
                                                                          .Map <ICollection <EducationBasicInfoServiceModel>,
                                                                                ICollection <EducationBasicInfoResponse> >(educations);

            if (educationsResponse != null)
            {
                return(Ok(educationsResponse));
            }
            else
            {
                return(NotFound());
            }
        }