Пример #1
0
 public DepartmentService(LdCmsDbEntitiesContext LdCmsDbEntitiesContext, IDepartmentDAL DepartmentDAL)
 {
     this.LdCmsDbEntitiesContext = LdCmsDbEntitiesContext;
     this.DepartmentDAL          = DepartmentDAL;
     this.Dal = DepartmentDAL;
 }
 public DepartmentController(IDepartmentDAL departmentDAL)
 {
     _departmentDAL = departmentDAL;
 }
Пример #3
0
        public static IDepartmentDAL GetDepartmentDAL()
        {
            IDepartmentDAL dal = GetInstance("DepartmentDAL") as IDepartmentDAL;

            return(dal);
        }
 public DepartmentManager()
 {
     _departmentDal = new NinjectManager().CoreKernel.Get <IDepartmentDAL>();
 }
Пример #5
0
 public DepartmentBLL(IDepartmentDAL dal)
 {
     _dal = dal ?? throw new ArgumentNullException(nameof(dal));
 }
Пример #6
0
 public DepartmentService(CTMSContext CTMSContext, IDepartmentDAL DepartmentDAL)
 {
     this.CTMSContext   = CTMSContext;
     this.DepartmentDAL = DepartmentDAL;
     this.Dal           = DepartmentDAL;
 }