示例#1
0
        public ActionResult Users()
        {
            var accountService = new AccountService(Database, AuthenticationService);
            var service        = new ScribeService(Database, accountService, null, GetCurrentUser());

            return(View(service.GetUsers(new PagedRequest {
                PerPage = int.MaxValue
            })));
        }
示例#2
0
        public ActionResult UsersWithTag(string tag)
        {
            var accountService = new AccountService(Database, AuthenticationService);
            var service        = new ScribeService(Database, accountService, null, GetCurrentUser());

            ViewBag.Tag = tag;
            return(View(service.GetUsers(new PagedRequest {
                Filter = $"Tags.Contains(\"{tag}\")", Page = 1, PerPage = int.MaxValue
            })));
        }
示例#3
0
 public PagedResults <UserView> GetUsers(PagedRequest request)
 {
     return(_service.GetUsers(request));
 }