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)); }
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))); }
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))); }
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))); }
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))); }
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())); }
public string MobileCourses(IEnumerable <ICourseLink> courses) { return(MHtmls.MainList(courses .Select(x => Html.CourseLinkAnchor(x.UrlName, x.GetName())))); }
public string MobileSections(IEnumerable <Section> sections) { return(MHtmls.MainList(sections.Select(x => Url.SectionLink(x)))); }
public string MobileNews(IEnumerable <News> news) { return(MHtmls.MainList(news.Select(x => Url.SiteNews().Details(x.NewsID, null, H.l(span.Class("h2_inline")[x.Name], H.span.Class("p_inline")[x.ShortDescription]))))); }
public string MobileActions(IEnumerable <MarketingAction> actions) { return(MHtmls.MainList(actions.Select(x => Url.Center().MarketingAction(x.UrlName, H.l(span.Class("h2_inline")[x.Name], H.span.Class("p_inline")[H.Raw(StringUtils.GetFirstParagraph(x.Description))]))))); }
public string MobileComplexes(IEnumerable <Complex> complexes) { return(MHtmls.MainList(complexes.Select(x => Url.Locations().Complex(x.UrlName, H.l(x.Name, H.span.Class("addrfilials")[x.Address]))))); }