Пример #1
0
        public ActionResult Add()
        {
            var model = new DvdShortItem();

            var directorRepo = DirectorRepositoryFactory.GetRepository();
            var ratingRepo   = RatingRepositoryFactory.GetRepository();

            return(View(model));
        }
Пример #2
0
        public ActionResult Add(DvdShortItem model)
        {
            var repo = DvdRepositoryFactory.GetRepository();

            try
            {
                repo.Insert(model);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(View(model));
        }
Пример #3
0
 public void Insert(DvdShortItem model)
 {
     throw new NotImplementedException();
 }