Пример #1
0
 public ActionResult SubscriptionModule(SubscriptionModel model)
 {
     if (ModelState.IsValid)
     {
         model.Subscribed = true;
         var entity = model.ToEntity();
         _emailSubscriptionService.Add(entity);
         model.EmailAddress = "";
     }
     return PartialView(model);
 }
Пример #2
0
        public ActionResult SubscriptionModule()
        {
            var model = new SubscriptionModel();

            return PartialView(model);
        }