Ejemplo n.º 1
0
        public ActionResult Create(Calendar calendar)
        {
            using (SqlUnitOfWork unitOfWork = new SqlUnitOfWork("gp"))
            {
                CalendarRepository calendarRepo = new CalendarRepository(unitOfWork);
                calendarRepo.Insert(calendar);

                unitOfWork.Commit();
            }

            return(RedirectToAction("Index"));
        }