Exemplo n.º 1
0
        public static Form ToShopifyModel(this StorefrontModel.ContactUsForm contactUsForm)
        {
            var retVal = new Form();

            if (contactUsForm.Contact != null)
            {
                retVal.Properties = contactUsForm.Contact;
            }

            return(retVal);
        }
Exemplo n.º 2
0
        public static Form ToShopifyModel(this StorefrontModel.ContactUsForm contactUsForm)
        {
            var retVal = new Form();

            if (contactUsForm.Contact != null)
            {
                retVal.Properties = contactUsForm.Contact.ToDictionary(x => x.Key, x => x.Value != null ? string.Join(", ", x.Value) : string.Empty);
            }

            return(retVal);
        }
        public async Task<ActionResult> Feedback(ContactUsForm model)
        {
            await _storeModuleApi.StoreModuleSendDynamicNotificationAnStoreEmailAsync(model.ToServiceModel(WorkContext));

            return new HttpStatusCodeResult(HttpStatusCode.OK);
        }
Exemplo n.º 4
0
 public async Task<ActionResult> СontactUs(ContactUsForm model, string viewName = "page.contact")
 {
     await _storeModuleApi.StoreModuleSendDynamicNotificationAnStoreEmailAsync(model.ToServiceModel(base.WorkContext));
     WorkContext.ContactUsForm = model;
     return View(viewName, base.WorkContext);
 }