コード例 #1
0
        public ActionResult Index()
        {
            var        testfact   = DvdRepositoryFactory.ChooseRepo();
            List <Dvd> currentDvd = new List <Dvd>();

            try
            {
                currentDvd = testfact.ReadAllDvd();
            }
            catch
            {
                throw new Exception("Wrong!");
            }
            return(View(currentDvd));
        }