Example #1
0
        public ActionResult SberbankInfo(decimal orderID)
        {
            if (CommonConst.IsMobile)
            {
                var order = OrderService.GetByPKAndUserID(orderID,
                                                          AuthService.CurrentUser.UserID);
                if (order != null)
                {
                    CartService.SetPaymentType(PaymentTypes.SberBank, orderID);
                }
                return(BaseView(new PagePart(MHtmls.LongList(
                                                 MHtmls.Title("Сбербанк"),
                                                 "Информация о заказ отправлена вам на почту").ToString())));
            }

            var user        = UserService.GetByPK(User.UserID);
            var userAddress = user
                              .UserAddresses.FirstOrDefault();

            if (userAddress == null)
            {
                userAddress = new UserAddress();
            }
            userAddress.ForSberbank = true;

            var model = new SberbankInfoVM {
                OrderID     = orderID,
                UserAddress = userAddress,
                Manager     = GetSiteManager(orderID)
            };

            model.Contacts = new ContactsVM();
            Services.Profile.ProfileService.InitPhones(user, model.Contacts);
            return(View(model));
        }
Example #2
0
        public ActionResult About()
        {
            var view = MHtmls.LongList(MHtmls.Title("О Центре:"),
                                       MHtmls.MainList(Url.Center().Info("Информация о Центре"), Url.Complexes()));

            return(BaseView(
                       new PagePart(view.ToString()),
                       new PagePart(Views.Shared.Education.NearestGroupMobile, null)));
        }
Example #3
0
        public ActionResult NewsAndActions()
        {
            var view = MHtmls.LongList(MHtmls.Title("Новости и акции"),
                                       MHtmls.MainList(Url.NewsListLink(),
                                                       Url.ActionsLink()));

            return(BaseView(
                       new PagePart(view.ToString()),
                       new PagePart(Views.Shared.Education.NearestGroupMobile, null)));
        }
Example #4
0
        public ActionResult Complexes()
        {
            var complexes = GetComplexes();
            var view      = H.l(MHtmls.Back(Url.AboutCenter()),
                                MHtmls.LongList(MHtmls.Title("О Центре:"),
                                                Html.Site().MobileComplexes(complexes)));

            return(BaseView(new PagePart(
                                view.ToString()),
                            new PagePart(Views.Shared.Education.NearestGroupMobile, null)));
        }
Example #5
0
        public ActionResult Actions()
        {
            var actions = MarketingActionService.GetAll().IsActive()
                          .Where(a => a.IsAdvert && !a.IsSecret && !a.IsSpecialOffer).OrderBy(a => a.WebSortOrder);
            var view = MHtmls.LongList(MHtmls.Title("Акции"),
                                       Html.Site().MobileActions(actions));

            return(BaseView(
                       new PagePart(view.ToString()),
                       new PagePart(Views.Shared.Education.NearestGroupMobile, null)));
        }
Example #6
0
        public ActionResult ExpressOrder(ExpressOrderVM model)
        {
            var isPost = Request.HttpMethod.ToLower() == "post";

            if (isPost)
            {
                MailService.ExpressOrder(model);
                var view = MHtmls.LongList(MHtmls.Title("Экспресс-запрос менеджеру"),
                                           H.p.Class("res_message")["Ваше сообщение отправлено."],
                                           H.p["Наши менеджеры свяжутся с Вами в ближайшее время!"]);
                return(BaseView(
                           new PagePart(view.ToString())));
            }
            return(BaseView(Views.Center.ExpressOrderMobile, new ExpressOrderVM()));
        }