Exemple #1
0
 public BaseController()
 {
     db          = new BemaxEntities();
     Slider      = db.Sliders.FirstOrDefault();
     Advisor     = db.Advisors.FirstOrDefault();
     OurWork     = db.OurWorks.FirstOrDefault();
     Project     = db.Projects.FirstOrDefault();
     Choose      = db.Chooses.FirstOrDefault();
     Post        = db.Posts.FirstOrDefault();
     Tester      = db.Testers.FirstOrDefault();
     Partner     = db.Partners.FirstOrDefault();
     Reason      = db.Reasons.FirstOrDefault();
     Team        = db.Teams.FirstOrDefault();
     Testimonial = db.Testimonials.FirstOrDefault();
 }
 public BaseController()
 {
     db = new BemaxEntities();
 }