Beispiel #1
0
 public ActionResult ArticleDetails(string article)
 {
     _repository.LangId = CurrentLangId;
     var model = new SiteModel(_repository, CurrentLangId, "category", articleName: article)
     {
         CurrentLangCode = CurrentLangCode
     };
     this.SetSeoContent(model);
     return View(model);
 }
Beispiel #2
0
        public ActionResult Index()
        {
            if (WebSession.OrderItems.Count == 0)
                return RedirectToAction("Catalogue", "Home", null);

            decimal totalAmount = WebSession.OrderItems.Sum(oi => oi.Value.Price * oi.Value.Quantity);
            ViewBag.TotalAmount = totalAmount;
            var model = new SiteModel(_repository, CurrentLangId, null) { CurrentLangCode = CurrentLangCode };
            this.SetSeoContent(model);
            return View(model);
        }
Beispiel #3
0
 public ActionResult Index(string id, string msg)
 {
     _repository.LangId = CurrentLangId;
     var model = new SiteModel(_repository, CurrentLangId, id, true) { CurrentLangCode = CurrentLangCode };
     this.SetSeoContent(model);
     if (msg == "thanks")
     {
         ViewBag.Message = "Спасибо, ваше сообщение отправлено";
     }
     return View(model);
 }
Beispiel #4
0
 public ActionResult CheckOut()
 {
     var model = new SiteModel(_repository, CurrentLangId, null);
     this.SetSeoContent(model);
     return View(model);
 }