public ActionResult Create(SubscriberModel model)
 {
     if (ModelState.IsValid)
     {
         Subscriber newSubscriber = new Subscriber
                                    {
                                        CreateDate = DateTime.Now
                                    };
         model.UpdateSubscriber(newSubscriber);
         Context.Subscribers.Add(newSubscriber);
         Context.SaveChanges();
         return RedirectToAction("AllSubscribers");
     }
     return View(model);
 }
 public ActionResult SubscribeToNewsletter(SubscriberModel model)
 {
     String returnViewName = "_SubscriptionFailed";
     if (ModelState.IsValid &&
             Context.Subscribers.All(s => s.Email != model.Email))
     {
         Subscriber subscriber = new Subscriber
                                     {
                                         CreateDate = DateTime.Now
                                     };
         model.UpdateSubscriber(subscriber);
         Context.Subscribers.Add(subscriber);
         Context.SaveChanges();
         returnViewName = "_SubscriptionCompleted";
         if (Request.IsAjaxRequest())
         {
             return PartialView(returnViewName);
         }
         return View(returnViewName);
     }
     if (Request.IsAjaxRequest())
     {
         return PartialView(returnViewName);
     }
     return View(returnViewName);
 }