public UsersGetAllReply IdentityGetAll(UsersGetAllRequest request)
        {
            UsersGetAllReply response = new UsersGetAllReply();

            try
            {
                int totalRecords = 0;
                response.UserList     = _membership.GetAllUsers(request.PageIndex, request.PageSize, out totalRecords);
                response.TotalRecords = totalRecords;
                response.Status       = ActionStatus.OK;
                return(response);
            }
            catch (Exception ex)
            {
                throw ex.NewFault();
            }
            //catch (Exception ex)
            //{
            //    response.Status = ActionStatus.Error;
            //    response.Messages.Add(MessageSeverity.Error, 0, Utils.Expand(ex));
            //    return response;
            //}
        }
Ejemplo n.º 2
0
 public UsersGetAllReply(UsersGetAllRequest request)
     : base(request)
 {
 }