예제 #1
0
 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());
 }
예제 #2
0
 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());
 }