public HomeController() { p = new PageRepository(new News_Agency_Entities()); pg = new PageGroupRepository(new News_Agency_Entities()); pc = new PageCommentRepository(new News_Agency_Entities()); lg = new LoginRepository(new News_Agency_Entities()); }
public NewsController() { pageGroupRepository = new PageGroupRepository(db); pageRepository = new PageRepository(db); pageCommentRepository = new PageCommentRepository(db); }
public PageCommentsController() { pg = new PageGroupRepository(new News_Agency_Entities()); pa = new PageRepository(new News_Agency_Entities()); pc = new PageCommentRepository(new News_Agency_Entities()); }