private void Fetch() { var rlce = RaiseListChangedEvents; RaiseListChangedEvents = false; IsReadOnly = false; using (var dalManager = DalFactory.GetManager(DalManagerTypes.DalManagerDb)) { IVehicleDal dal = dalManager.GetProvider <IVehicleDal>(); IList <VehicleDto> data = null; data = dal.Fetch(); if (data != null) { foreach (var item in data) { Add(DataPortal.FetchChild <VehicleInfo>(item)); } } RaiseListChangedEvents = rlce; IsReadOnly = true; } }
public VehicleManager(IVehicleDal vehicleDal, IVehicleTypeDal vehicleTypeDal, IUserDal userDal) { _vehicleDal = vehicleDal; _vehicleTypeDal = vehicleTypeDal; _userDal = userDal; }
public AdminPanelController(IFuelTypeDal fuelTypeDal, IGearTypeDal gearTypeDal, IVehicleDal vehicleDal, IVehicleTypeDal vehicleTypeDal, ICarDal carDal, IBranchDal branchDal) { _fuelTypeDal = fuelTypeDal; _gearTypeDal = gearTypeDal; _vehicleTypeDal = vehicleTypeDal; _carDal = carDal; _vehicleDal = vehicleDal; _branchDal = branchDal; }
public MaintenanceManager(IMaintenanceDal maintenanceDal, IMaintenanceHistoryDal maintenanceHistoryDal, IActionTypeDal actionTypeDal, IUserDal userDal, IVehicleDal vehicleDal, IVehicleTypeDal vehicleTypeDal, IPictureGroupDal pictureGroupDal, IStatusDal statusDal) { _maintenanceDal = maintenanceDal; _maintenanceHistoryDal = maintenanceHistoryDal; _actionTypeDal = actionTypeDal; _userDal = userDal; _vehicleDal = vehicleDal; _vehicleTypeDal = vehicleTypeDal; _pictureGroupDal = pictureGroupDal; _statusDal = statusDal; }
public VehicleManager(IVehicleDal vehicleDal) { _vehicleDal = vehicleDal; }
public VehicleManager(IVehicleDal productDal) { _productDal = productDal; }
public VehicleManager(IVehicleDal vehicleDal, IBrandService brandService) { _vehicleDal = vehicleDal; _brandService = brandService; }