Пример #1
0
 public ActionResult Specials(AdminSpecialViewModel model)
 {
     if (ModelState.IsValid)
     {
         ISpecialRepository repo    = RepoFactory.CreateSpecialRepo();
         Special            special = new Special()
         {
             Description = model.Description,
             Title       = model.Title
         };
         repo.Create(special);
         return(RedirectToAction("Specials"));
     }
     return(View(model));
 }