public ActionResult Create(GalleryFormModel model) {

            var item = Mapper.Map<GalleryFormModel, Gallery>(model);
            GetSession.Save(item);

            return RedirectToAction("Index");
        }
 public ActionResult Create() {
     var model = new GalleryFormModel() {
         Id = Guid.NewGuid(),
         Date = DateTime.Now
     };
     return View(model);
 }
        public ActionResult Edit(GalleryFormModel model) {
            var item = GetSession.Get<Gallery>(model.Id);

            Mapper.Map<GalleryFormModel, Gallery>(model, item);
            GetSession.Update(item);

            return RedirectToAction("Index");
        }