Beispiel #1
0
        public ActionResult <UserListResponse> Search([FromQuery] UserSearchRequest searchRequest)
        {
            var users     = _users.Search(searchRequest);
            var userCount = _users.Count(searchRequest);

            return(UserListResponse.Create(searchRequest, users, userCount));
        }
Beispiel #2
0
        public ActionResult <UserListResponseModel> ListUsers([FromQuery] SearchRequestModel searchModel)
        {
            var users     = _users.GetAll(searchModel);
            var userCount = _users.Count(searchModel);

            return(UserListResponseModel.Create(searchModel, users, userCount));
        }