예제 #1
0
        public ActionResult Footer()
        {
            //int languageId = _workContext.WorkingLanguage.Id;

            ContactInformation contactInformation = this._contactInfoService.Get((ContactInformation x) => x.Status == 1 && x.Type == 1, true);

            var contactInformationLocalize = contactInformation.ToModel();

            //if (contactInformation == null)
            //    return HttpNotFound();

            //ContactInformation contactInformationLocalize = new ContactInformation
            //{
            //    Lag = contactInformation.Lag,
            //    Lat = contactInformation.Lat,
            //    Type = contactInformation.Type,
            //    Status = contactInformation.Status,
            //    Email = contactInformation.Email,
            //    Hotline = contactInformation.Hotline,
            //    MobilePhone = contactInformation.MobilePhone,
            //    Fax = contactInformation.Fax,
            //    NumberOfStore = contactInformation.NumberOfStore,
            //    ProvinceId = contactInformation.ProvinceId,
            //    Title = contactInformation.GetLocalizedByLocaleKey(contactInformation.Title, contactInformation.Id, languageId, "ContactInformation", "Title"),
            //    Address = contactInformation.GetLocalizedByLocaleKey(contactInformation.Address, contactInformation.Id, languageId, "ContactInformation", "Address"),
            //    GenericControls = contactInformation.GenericControls
            //};

            return(base.PartialView(contactInformationLocalize));
        }
예제 #2
0
        public ActionResult GetContactOrder()
        {
            ContactInformation contactInformation = this._contactInfoService.Get((ContactInformation x) => x.Status == 1 && x.Type == 1, true);

            var contactInformationLocalized = contactInformation.ToModel();

            return(base.PartialView(contactInformationLocalized));
        }
예제 #3
0
        public ActionResult GetAddressInfo()
        {
            //int languageId = _workContext.WorkingLanguage.Id;

            ContactInformation contactInformation = this._contactInfoService.Get((ContactInformation x) => x.Status == 1 && x.Type == 1, true);

            var contactInformationLocalize = contactInformation.ToModel();

            //ContactInformation contactInformationLocalize = new ContactInformation
            //{
            //    Title = contactInformation.GetLocalizedByLocaleKey(contactInformation.Title, contactInformation.Id, languageId, "ContactInformation", "Title"),
            //    Address = contactInformation.GetLocalizedByLocaleKey(contactInformation.Address, contactInformation.Id, languageId, "ContactInformation", "Address"),

            //};

            return(base.PartialView(contactInformationLocalize));
        }