Example #1
0
 public StudentController()
 {
     studentRepo = new StudentBizRepo();
     context     = new OLDbContext();
 }
 public StudentController()
 {
     studentRepo = new StudentBizRepository();
     context     = new RhealAssignmentDBContext();
 }
 public CourseController()
 {
     corRepository = new CourseBizRepository();
     traRepository = new TrainerBizRepository();
 }
Example #4
0
 public CourseController()
 {
     sturepo = new StudentBizRepo();
     corRepo = new CourseBizRepo();
     context = new OLDbContext();
 }
Example #5
0
 public TrainerController()
 {
     trainRepo = new TrainerBizRepo();
     context   = new OLDbContext();
 }
Example #6
0
 public CategoryBinderAPIController(IBizRepository <Categories, int> repository)
 {
     catRepository = repository;
 }
 public CourseController()
 {
     CourseRepository = new CourseRepository();
 }
Example #8
0
 public HomeController()
 {
     courseRepo   = new CourseBizRepository();
     context      = new RhealAssignmentDBContext();
     appdbContext = new ApplicationDbContext();
 }
 public TrainerController()
 {
     trainerRepo = new TrainerBizRepository();
     context     = new RhealAssignmentDBContext();
 }
 public StudentController()
 {
     StudentRepository = new StudentRepository();
 }
 public CategoryAPIController()
 {
     catRepository = new CategoryBizRepository();
 }
Example #12
0
 public CourseController()
 {
     courseRepo = new CourseBizRepository();
     context    = new RhealAssignmentDBContext();
 }
 public TrainerController()
 {
     traRepository = new TrainerBizRepository();
 }
 public SPAController(IBizRepository <Category, int> bizRepository)
 {
     this.bizRepository = bizRepository;
 }
Example #15
0
 public SearchController()
 {
     catRepository = new StudentBizRepository();
     corRepository = new CourseBizRepository();
     ctx           = new RHealDbContext();
 }
Example #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;
        }
Example #18
0
 public TrainerController()
 {
     TrainerRepository = new TrainerRepository();
 }
 public StudentInfoController()
 {
     context       = new RHealDbContext();
     catRepository = new StudentBizRepository();
     croRepository = new CourseBizRepository();
 }
Example #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();
 }
Example #23
0
 public ModuleController()
 {
     corRepo = new CourseBizRepo();
     modRepo = new ModuleRepo();
     context = new OLDbContext();
 }
Example #24
0
 public ProductController()
 {
     productRepo = new ProductBizRepository();
 }
 public AreaOfInterestController()
 {
     areaOfInterestRepo = new AreaOfInterestBizRepository();
 }