public HttpResponseMessage GetWebVisits(byte pageNumber, int lmit, bool includeViewWebVisits) { GetRecentWebVisitsRequest request = new GetRecentWebVisitsRequest(); request.PageNumber = (byte)pageNumber; request.Limit = lmit; request.IncludePreviouslyRead = includeViewWebVisits; request.RequestedBy = this.UserId; request.AccountId = this.AccountId; request.RoleId = this.RoleId; GetRecentWebVisitsResponse response = userService.GetRecentWebVisits(request); return(Request.BuildResponse(response)); }
public ActionResult RecentWebVisits(string parameters) { GetRecentWebVisitsRequest request = JsonConvert.DeserializeObject <GetRecentWebVisitsRequest>(parameters); request.RequestedBy = this.Identity.ToUserID(); request.AccountId = this.Identity.ToAccountID(); request.RoleId = this.Identity.ToRoleID(); cachingService.GetUserPermissions(request.AccountId); cachingService.GetAccountPermissions(request.AccountId); GetRecentWebVisitsResponse response = userService.GetRecentWebVisits(request); return(new JsonResult { Data = response, JsonRequestBehavior = JsonRequestBehavior.AllowGet }); }