public ActionResult NewsletterSubscription(string email)
        {
            var customer = new CustomerModel();

            customer.Email = Sanitizer.GetSafeHtmlFragment(email);
            var response = _customerRepository.NewsletterSubscription(customer);

            return(JsonSuccess(response.Result, JsonRequestBehavior.AllowGet));
        }
 public ActionResult NewsletterSubscription(NewsletterModel newsletter)
 {
     if (newsletter != null)
     {
         newsletter.Email = Sanitizer.GetSafeHtmlFragment(newsletter.Email);
         var response = _customerRepository.NewsletterSubscription(newsletter);
         return(JsonSuccess(response.Result, JsonRequestBehavior.AllowGet));
     }
     return(JsonSuccess(false, JsonRequestBehavior.AllowGet));
 }