public MainWindowDxViewModel(
            IAddressDataService addressDataService,
            IMaterialDataService materialDataService)
        {
            long startTicks = Log.Debug("Enter", Common.LOG_APPNAME);

            _addressDataService  = addressDataService;
            _materialDataService = materialDataService;

            Addresses = new ObservableCollection <Address>();
            Materials = new ObservableCollection <Material>();
        }
예제 #2
0
 public RegisterModel(
     UserManager <Employee> userManager,
     SignInManager <Employee> signInManager,
     ILogger <RegisterModel> logger,
     IEmailSender emailSender,
     IAddressDataService addressDataService,
     ITownDataService townDataService)
 {
     _userManager            = userManager;
     _signInManager          = signInManager;
     _logger                 = logger;
     _emailSender            = emailSender;
     this.addressDataService = addressDataService;
     this.townDataService    = townDataService;
 }
예제 #3
0
 public CurrentUserService(IIdentityManager identityManager, IAppUserManager userManager, IUnitOfWork unitOfWork,
                           IFileManager fileManager, IDiscountDataService discountDataService, IWorkContext workContext,
                           IShoppingCartItemDataService shoppingCartItemDataService, IDiscountValidator discountValidator, ICouponCodeDataService couponCodeDataService, IOrderDataService orderDataService, IAddressDataService addressDataService)
 {
     _identityManager             = identityManager;
     _userManager                 = userManager;
     _unitOfWork                  = unitOfWork;
     _fileManager                 = fileManager;
     _discountDataService         = discountDataService;
     _workContext                 = workContext;
     _shoppingCartItemDataService = shoppingCartItemDataService;
     _discountValidator           = discountValidator;
     _couponCodeDataService       = couponCodeDataService;
     _orderDataService            = orderDataService;
     _addressDataService          = addressDataService;
     _userAttributes              = unitOfWork.Set <UserAttribute>();
     _currUserId                  = new Lazy <Guid>(() => _userManager.GetCurrentUserId());
 }
예제 #4
0
 public ManagementController(ITownDataService townDataService,
                             MDManagementDbContext data,
                             IEmployeeService employeeService,
                             IEmployeeDataService employeeDataService,
                             ICompanyDataService comapnyService,
                             UserManager <Employee> userManager,
                             IJobTitleService jobTitleService,
                             IJobTitleDataService jobTitleDataService,
                             RoleManager <IdentityRole> roleManager,
                             IDepatmentDataService depatmentDataService,
                             IAddressDataService addressDataService)
 {
     this.employeeService     = employeeService;
     this.employeeDataService = employeeDataService;
     this.comapnyService      = comapnyService;
     this.userManager         = userManager;
     this.jobTitleService     = jobTitleService;
 }
예제 #5
0
 public EmployeeService(IEmployeeDataService employeeDataService,
                        IJobTitleService jobTitleService,
                        IJobTitleDataService jobTitleDataService,
                        IDepatmentDataService depatmentDataService,
                        ITownDataService townDataService,
                        IAddressDataService addressDataService,
                        MDManagementDbContext data,
                        RoleManager <IdentityRole> roleManager,
                        UserManager <Employee> userManager)
 {
     this.employeeDataService  = employeeDataService;
     this.jobTitleService      = jobTitleService;
     this.jobTitleDataService  = jobTitleDataService;
     this.depatmentDataService = depatmentDataService;
     this.townDataService      = townDataService;
     this.addressDataService   = addressDataService;
     this.data        = data;
     this.roleManager = roleManager;
     this.userManager = userManager;
 }
예제 #6
0
 public AddressBusinessService(IAddressDataService addressDataService)
 {
     _addressDataService = addressDataService;
 }
예제 #7
0
 public PatientService(IPatientDataService patientDataService, IAddressDataService addressDataService)
 {
     _patientDataService = patientDataService;
     _addressDataService = addressDataService;
 }