示例#1
0
 public SalesController(ILogger <SalesController> logger, IHumanResourcesService humanResourcesBusinessObject, IProductionService productionBusinessObject, ISalesService salesBusinessObject)
 {
     Logger = logger;
     HumanResourcesBusinessObject = humanResourcesBusinessObject;
     ProductionBusinessObject     = productionBusinessObject;
     SalesBusinessObject          = salesBusinessObject;
 }
        public ManagedEmployeeListViewModel(IHumanResourcesService humanResourcesService, IRegionManager regionManager)
        {
            _humanResourcesService = humanResourcesService;
            _regionManager         = regionManager;

            PopCommand = new DelegateCommand(() => Pop(_regionManager));

            EditCommand = this.ObserveProperty(x => x.IsReadOnly).ToReactiveCommand();
            EditCommand.Subscribe(() => IsReadOnly = false);

            SaveCommand = this.ObserveProperty(x => x.IsReadOnly).Select(x => !x).ToReactiveCommand();
            SaveCommand.Subscribe(OnSave);
        }
 public EmployeePhoneController(IHumanResourcesService humanResourcesService)
 {
     HumanResourcesService = humanResourcesService;
 }
 public ManageEmployees(IHumanResourcesService humanResourcesService)
 {
     _humanResourcesService = humanResourcesService;
 }
 public EmployeeController(IHumanResourcesService humanResourcesService)
 {
     HumanResourcesService = humanResourcesService;
 }
示例#6
0
 public RestController(ILogger <RestController> logger, IHumanResourcesService service, EmployeeConverter converter)
 {
     _logger    = logger;
     _service   = service;
     _converter = converter;
 }