Example #1
0
        public UserListUIDTO GetUsers(UserUIDTO filter, int page)
        {
            IUsersBusinessService userService = new UserBusinessService();
            var users = userService.RetrieveAll();
            var usersUi = UserMapper.GetUserUIDTOList(users);
            var model = new UserListUIDTO();

            model.Users = usersUi.ToPagedList(page, pageSize);
            model.Filter = new UserUIDTO();
            return model;
        }
Example #2
0
 public static UsersDTO GetUserDTO(UserUIDTO user)
 {
     Mapper.CreateMap<UserUIDTO, UsersDTO>();
     return Mapper.Map<UsersDTO>(user);
 }