Inheritance: IHasResponseStatus
Exemplo n.º 1
0
        public object Get(Users request)
        {
            var response = new UsersResponse();

            if (request.UserIds.Length == 0)
            {
                return(response);
            }

            var users = Db.SelectByIds <User>(request.UserIds);

            var userInfos = users.ConvertAll(x => x.ConvertTo <UserInfo>());

            return(new UsersResponse {
                Results = userInfos
            });
        }
        public object Get(Users request)
        {
            var response = new UsersResponse();

            if (request.UserIds.Length == 0)
                return response;

            var users = Db.SelectByIds<User>(request.UserIds);

            var userInfos = users.ConvertAll(x => x.ConvertTo<UserInfo>());

            return new UsersResponse
            {
                Results = userInfos
            };
        }