public List <Users> GetAllUsers()
        {
            Result <List <Users> > result = userStoreService.GetAllUsers();

            if (result.data == null)
            {
                result.success = false;
                result.AddError("No user found");
                return(null);
            }
            return(result.data);
        }
示例#2
0
        public List <Users> GetAllUsers(long siteid, int pageId, int pageSize, ref int count)
        {
            Result <List <Users> > result = userStoreService.GetAllUsers(siteid, pageId, pageSize, ref count);

            if (result.data == null)
            {
                result.success = false;
                result.AddError("No user found");
                return(null);
            }
            return(result.data);
        }