Ejemplo n.º 1
0
        public HttpResponseMessage GetContactWebVisits(int contactId)
        {
            GetContactWebVisitReportResponse response = new GetContactWebVisitReportResponse();

            response.WebVisits = contactService.GetContactWebVisits(new GetContactWebVisitReportRequest()
            {
                ContactId = contactId
            }).WebVisits;
            return(Request.BuildResponse(response));
        }
Ejemplo n.º 2
0
        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));
        }