public HttpResponseMessage GetContactWebVisits(int contactId) { GetContactWebVisitReportResponse response = new GetContactWebVisitReportResponse(); response.WebVisits = contactService.GetContactWebVisits(new GetContactWebVisitReportRequest() { ContactId = contactId }).WebVisits; return(Request.BuildResponse(response)); }
public ActionResult WebVistiDetails(string webVisitReference) { GetContactWebVisitReportResponse response = userService.GetWebVisitDetailsByVisitReference(new GetContactWebVisitReportRequest() { VisitReference = webVisitReference, RequestedBy = this.Identity.ToUserID() }); response.WebVisits.ToList().ForEach(w => w.VisitedOn = w.VisitedOn.ToUtcBrowserDatetime()); ViewBag.DateFormat = this.Identity.ToDateFormat(); return(PartialView("_WebVisitDetails", response.WebVisits)); }