예제 #1
0
 public StudentController()
 {
     studentRepo = new StudentBizRepo();
     context     = new OLDbContext();
 }
 public StudentController()
 {
     studentRepo = new StudentBizRepository();
     context     = new RhealAssignmentDBContext();
 }
예제 #3
0
 public CourseController()
 {
     corRepository = new CourseBizRepository();
     traRepository = new TrainerBizRepository();
 }
예제 #4
0
 public CourseController()
 {
     sturepo = new StudentBizRepo();
     corRepo = new CourseBizRepo();
     context = new OLDbContext();
 }
예제 #5
0
 public TrainerController()
 {
     trainRepo = new TrainerBizRepo();
     context   = new OLDbContext();
 }
예제 #6
0
 public CategoryBinderAPIController(IBizRepository <Categories, int> repository)
 {
     catRepository = repository;
 }
예제 #7
0
 public CourseController()
 {
     CourseRepository = new CourseRepository();
 }
예제 #8
0
 public HomeController()
 {
     courseRepo   = new CourseBizRepository();
     context      = new RhealAssignmentDBContext();
     appdbContext = new ApplicationDbContext();
 }
 public TrainerController()
 {
     trainerRepo = new TrainerBizRepository();
     context     = new RhealAssignmentDBContext();
 }
예제 #10
0
 public StudentController()
 {
     StudentRepository = new StudentRepository();
 }
 public CategoryAPIController()
 {
     catRepository = new CategoryBizRepository();
 }
예제 #12
0
 public CourseController()
 {
     courseRepo = new CourseBizRepository();
     context    = new RhealAssignmentDBContext();
 }
예제 #13
0
 public TrainerController()
 {
     traRepository = new TrainerBizRepository();
 }
 public SPAController(IBizRepository <Category, int> bizRepository)
 {
     this.bizRepository = bizRepository;
 }
예제 #15
0
 public SearchController()
 {
     catRepository = new StudentBizRepository();
     corRepository = new CourseBizRepository();
     ctx           = new RHealDbContext();
 }
예제 #16
0
 public SearchController()
 {
     context           = new ApplicationDbContext();
     StudentRepository = new StudentRepository();
     CourseRepository  = new CourseRepository();
 }
        //public ProductController()
        //{
        //    prdRespository = new ProductBizRepository();
        //    catRepository = new CategoryBizRepository();
        //}

        /// <summary>
        /// Injecting the Dependency using Repository Intercace
        /// </summary>
        public ProductController(IBizRepository <Product, int> prdRespository,
                                 IBizRepository <Category, int> catRepository)
        {
            this.prdRespository = prdRespository;
            this.catRepository  = catRepository;
        }
예제 #18
0
 public TrainerController()
 {
     TrainerRepository = new TrainerRepository();
 }
 public StudentInfoController()
 {
     context       = new RHealDbContext();
     catRepository = new StudentBizRepository();
     croRepository = new CourseBizRepository();
 }
예제 #20
0
 /// <summary>
 /// Injected the Repository in Constructor
 /// </summary>
 /// <param name="repository"></param>
 public ProductController(IBizRepository <Products, int> repository, IBizRepository <Categories, int> catRepo)
 {
     prdRepository = repository;
     catRepository = catRepo;
 }
 //public CategoryController()
 //{
 //    catRepository = new CategoryBizRepository();
 //}
 /// <summary>
 /// Inject the depednency by seraching
 /// the Object in the Dependency Container using Interface
 /// </summary>
 public CategoryController(IBizRepository <Category, int> catRepo)
 {
     catRepository = catRepo;
 }
 public StudentCourseController()
 {
     scRepo  = new StudentCourseRepo();
     context = new OLDbContext();
 }
예제 #23
0
 public ModuleController()
 {
     corRepo = new CourseBizRepo();
     modRepo = new ModuleRepo();
     context = new OLDbContext();
 }
예제 #24
0
 public ProductController()
 {
     productRepo = new ProductBizRepository();
 }
 public AreaOfInterestController()
 {
     areaOfInterestRepo = new AreaOfInterestBizRepository();
 }