示例#1
0
 public SearchHelper()
 {
     _reviewsDb = new ReviewsDbContext();
     _reportsDb = new BugReportsDbContext();
     _blogDb    = new BlogDbContext();
     _results   = new List <SearchResult>();
 }
示例#2
0
 public AdminController()
 {
     ViewModel            = new AdminPanelViewModel();
     ViewModel.BugReports = new List <BugReport>();
     ViewModel.Reviews    = new List <Review>();
     ViewModel.BlogPosts  = new List <BlogPost>();
     ViewModel.Users      = new List <ApplicationUser>();
     _appDb        = new ApplicationDbContext();
     _blogDb       = new BlogDbContext();
     _bugReportsDb = new BugReportsDbContext();
     _reviewsDb    = new ReviewsDbContext();
 }
 public FeedbackController()
 {
     _reports = new BugReportsDbContext();
     _reviews = new ReviewsDbContext();
 }
示例#4
0
 public HomeController()
 {
     _blogDb       = new BlogDbContext();
     _bugReportsDb = new BugReportsDbContext();
     _reviewsDb    = new ReviewsDbContext();
 }