public ActionResult Create(CalendarFormModel model) {

            var item = Mapper.Map<CalendarFormModel, Calendar>(model);
            GetSession.Save(item);

            return RedirectToAction("Index");
        }
        public ActionResult Edit(CalendarFormModel model) {
            var item = GetSession.Get<Calendar>(model.Id);

            Mapper.Map<CalendarFormModel, Calendar>(model, item);
            GetSession.Update(item);

            return RedirectToAction("Index");
        }
 public ActionResult Create() {
     var model = new CalendarFormModel() {
         Date = DateTime.Now
     };
     return View(model);
 }