示例#1
0
        public ActionResult GetReferrersInfo()
        {
            UserDT user = UsersManager.GetUserByAspNetId(User.Identity.GetUserId());

            List <ReferrerInfoDT> sitesInfo = SitesManager.GetReferrersInfo();

            ViewBag.SitesInfo = sitesInfo;

            List <CustomerVM> model = new List <CustomerVM>();
            var todayDate           = DateTime.Now.Date;

            foreach (var customer in ReferrersManagers.GetCustomers(0, true).Where(x => x.CreatedAt >= todayDate))
            {
                string type = string.Empty;
                CustomersManager.GetLastFourDigitCreditCards(customer.Id, out type);

                model.Add(CustomerVM.TransformFromCustomerDT(customer, type));
            }

            return(View(model));
        }