Пример #1
0
 public ActionResult Register(string @ref)
 {
     ViewBag.CountryList = GetCountrylist();
     CheckReferentCookie(@ref);
     _cookie.CheckReferentCookie(Request, Response, @ref);
     return(View());
 }
Пример #2
0
        public ActionResult Index(string @ref)
        {
            //byte[] time = BitConverter.GetBytes(DateTime.UtcNow.ToBinary());
            //byte[] key = Guid.NewGuid().ToByteArray();
            //string token = Convert.ToBase64String(time.Concat(key).ToArray());
            //Paypal.SendMoney();

            //GetInstragramUrlImage(out List<string> instagramUrlImage);
            _cookie.CheckReferentCookie(Request, Response, @ref);
            using (var dbContext = new MazzaDbContext())
            {
                UserEntityModel model = new UserEntityModel
                {
                    Users             = dbContext.Users.ToList(),
                    Deposits          = dbContext.Deposits.ToList(),
                    Withdrawals       = dbContext.Withdrawals.ToList(),
                    InstagramUrlImage = new List <string>
                    {
                        "https://www.bucknell.edu/Images/Depts/Communication/Branding/ColorPalette-PaperWhite-200x200.jpg",
                        "https://www.bucknell.edu/Images/Depts/Communication/Branding/ColorPalette-PANTONE305C-200x200.jpg",
                        "https://www.bucknell.edu/Images/Depts/Communication/Branding/ColorPalette-PANTONE640C-200x200.jpg",
                        "https://www.bucknell.edu/Images/Depts/Communication/Branding/ColorPalette-BucknellBlue-200x200.jpg",
                        "https://www.bucknell.edu/Images/Depts/Communication/Branding/ColorPalette-PANTONE137C-200x200.jpg"
                    }
                };
                return(View(model));
            }
        }
Пример #3
0
        public ActionResult CryptoProject(string @ref)
        {
            var response = HttpContext.Response;

            _cookie.CheckReferentCookie(Request, response, @ref);
            return(View());
        }
Пример #4
0
 public ActionResult Index(string @ref)
 {
     _cookie.CheckReferentCookie(Request, Response, @ref);
     using (var dbContext = new MazzaDbContext())
     {
         UserEntityModel model = new UserEntityModel
         {
             Users       = dbContext.Users.ToList(),
             Deposits    = dbContext.Deposits.ToList(),
             Withdrawals = dbContext.Withdrawals.ToList(),
         };
         return(View(model));
     }
 }