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 }))); }
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 }))); }
public PagedResults <UserView> GetUsers(PagedRequest request) { return(_service.GetUsers(request)); }