public ActionResult Add() { var model = new DvdShortItem(); var directorRepo = DirectorRepositoryFactory.GetRepository(); var ratingRepo = RatingRepositoryFactory.GetRepository(); return(View(model)); }
public ActionResult Add(DvdShortItem model) { var repo = DvdRepositoryFactory.GetRepository(); try { repo.Insert(model); } catch (Exception ex) { throw ex; } return(View(model)); }
public void Insert(DvdShortItem model) { throw new NotImplementedException(); }