public async Task <UserDto> GetByCredentials(string username, string password) { var entity = await _userService.GetByCredentials(username, password); return(FactoryMapper.MapToDto(entity)); }
public async Task <IEnumerable <RoleDto> > GetAllRoles() { var roleList = await _roleDataService.GetAllRoles(); return(FactoryMapper.MapToDto(roleList.ToList())); }
public async Task <IEnumerable <UserDto> > GetAllUsersAsync() { var entityList = await _userService.GetAllUsersAsync(); return(FactoryMapper.MapToDto(entityList.ToList())); }