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)); }
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)); }