public async Task <IEnumerable <LanguageDto> > GetLanguagesListAsync() { IEnumerable <Language> languages = await _repository.GetListAsync <Language>(); return(_dataAdapter.Map <IEnumerable <LanguageDto> >(languages)); }
public async Task <IEnumerable <GroupDto> > GetListAsync() { IEnumerable <Group> groups = await _groupRepository.GetListAsync <Group>(); return(_dataAdapter.Map <IEnumerable <GroupDto> >(groups)); }
public async Task <IActionResult> GetLanguagesList() { IEnumerable <LanguageDto> languages = await _infoManager.GetLanguagesListAsync(); return(Ok(_dataAdapter.Map <IEnumerable <LanguageViewModel> >(languages))); }
public async Task <IActionResult> Index([FromQuery] GroupsListOptionsModel groupsListOptionsModel) { IEnumerable <GroupDto> groupsDto = await _groupManager.GetListAsync(_queryOptionsAdapter.Map(groupsListOptionsModel)); return(Ok(_dataAdapter.Map <IEnumerable <GroupViewModel> >(groupsDto))); }
public async Task <IEnumerable <UserDto> > GetListByGroupAsync(int id) { IEnumerable <User> users = await _userRepository.GetListByGroupAsync(id); return(_dataAdapter.Map <IEnumerable <UserDto> >(users)); }