public ViewResult EditPromotion(int id)
 {
     var viewModel = new EditPromotionViewModel()
       {
     Promotion = this.session.Repository<Promotion>().Get(id)
       };
       return View("EditPromotion", viewModel);
 }
 public ActionResult EditPromotion(EditPromotionViewModel viewModel)
 {
     if (!ModelState.IsValid)
     return View(viewModel);
       viewModel.Promotion.PublicationDate = DateTime.Now;
       this.SaveEntity(viewModel.Promotion);
       return RedirectToAction("NewsAndPromotions");
 }
 public ViewResult CreatePromotion()
 {
     var viewModel = new EditPromotionViewModel()
       {
     Promotion = this.session.Repository<Promotion>().Create()
       };
       return View("EditPromotion", viewModel);
 }