コード例 #1
0
 public DataAccessLayer()
 {
     _workerLogic       = new WorkerBL();
     _truckLogic        = new TruckBL();
     _driveLogic        = new DriveBL();
     _userLogic         = new UserBL();
     _notificationLogic = new NotificationBL();
     _fuelLogic         = new FuelBL();
     _brandLogic        = new BrandsBL();
 }
コード例 #2
0
        // GET: api/Workers
        public async Task <IEnumerable <Worker> > Get()
        {
            WorkerBL workers = new WorkerBL(); //TODO!: Unity Container -> web.config / resolve

            return(await workers.GetData());
        }