コード例 #1
0
ファイル: MessageController.cs プロジェクト: hanstalker1/ebs
 public MessageController(IUserBusinessService userBusinessService,
                          IMessageBusinessService messageBusinessService, IMapper mapper,
                          IWebHostEnvironment hostEnvironment) : base(mapper, hostEnvironment)
 {
     this.userBusinessService    = userBusinessService;
     this.messageBusinessService = messageBusinessService;
 }
コード例 #2
0
 public AdminController(IMapper mapper, IBookBusinessService bookBusinessService,
                        IUserBusinessService userBusinessService)
 {
     this.bookBusinessService = bookBusinessService;
     this.userBusinessService = userBusinessService;
     this.mapper = mapper;
 }
コード例 #3
0
ファイル: EbsApiController.cs プロジェクト: hanstalker1/ebs
 public EbsApiController(IUserBusinessService userBusinessService, IMapper mapper,
                         IWebHostEnvironment hostEnvironment)
 {
     this.userBusinessService = userBusinessService;
     this.folder = Path.Combine(hostEnvironment.WebRootPath, "files");
     this.mapper = mapper;
 }
コード例 #4
0
 public BookController(IBookBusinessService bookBusinessService, IMapper mapper,
                       IWebHostEnvironment hostEnvironment, IUserBusinessService userBusinessService)
     : base(mapper, hostEnvironment)
 {
     this.bookBusinessService = bookBusinessService;
     this.userBusinessService = userBusinessService;
 }
コード例 #5
0
 public BaseAuthorizationController(IUserBusinessService userBusinessService)
 {
     this._config = new MapperConfiguration(
         cfg => { cfg.CreateMap <User, BusinessService.Models.User>().ReverseMap(); });
     this._mapper      = new Mapper(this._config);
     this.UsersService = userBusinessService;
     this.SetCurrentUser();
 }
コード例 #6
0
ファイル: UserController.cs プロジェクト: FoxyChmoxy/ebs
 public UserController(IUserBusinessService userBusinessService, IMapper mapper,
                       IWebHostEnvironment hostEnvironment, IBookBusinessService bookBusinessService,
                       IConfiguration configuration) : base(mapper, hostEnvironment)
 {
     this.userBusinessService = userBusinessService;
     this.bookBusinessService = bookBusinessService;
     this.configuration       = configuration;
 }
コード例 #7
0
ファイル: EbsApiController.cs プロジェクト: hanstalker1/ebs
 public EbsApiController(IAdminBusinessService adminBusinessService,
                         IUserBusinessService userBusinessService, IBookBusinessService bookBusinessService,
                         IMapper mapper, IWebHostEnvironment hostEnvironment)
 {
     this.adminBusinessService = adminBusinessService;
     this.userBusinessService  = userBusinessService;
     this.bookBusinessService  = bookBusinessService;
     this.hostEnvironment      = hostEnvironment;
     this.mapper = mapper;
 }
コード例 #8
0
 public CompanyController(
     ICompanyBusinessService companyBusinessService,
     IUserBusinessService userBusinessService)
     : base(userBusinessService)
 {
     this._companyBusinessService = companyBusinessService;
     this._config = new MapperConfiguration(
         cfg => { cfg.CreateMap <Company, BusinessService.Models.Company>().ReverseMap(); });
     this._mapper = new Mapper(this._config);
 }
コード例 #9
0
 public DriverController(IDriverBusinessService driverBusinessService, IUserBusinessService userBusinessService)
     : base(userBusinessService)
 {
     _driverBusinessService = driverBusinessService;
     _config = new MapperConfiguration(cfg =>
     {
         cfg.CreateMap <Company, BusinessService.Models.Company>().ReverseMap();
         cfg.CreateMap <Driver, BusinessService.Models.Driver>()
         .ForMember(x => x.Company, b => b.ResolveUsing(c => c.Company)).ReverseMap();
     });
     _mapper = new Mapper(_config);
 }
コード例 #10
0
 public VehicleController(IVehicleBusinessService vehicleBusinessService, IUserBusinessService userBusinessService)
     : base(userBusinessService)
 {
     _vehicleBusinessService = vehicleBusinessService;
     _config = new MapperConfiguration(cfg =>
     {
         cfg.CreateMap <Company, BusinessService.Models.Company>().ReverseMap();
         cfg.CreateMap <Driver, BusinessService.Models.Driver>().ReverseMap();
         cfg.CreateMap <Vehicle, BusinessService.Models.Vehicle>()
         .ForMember(v => v.Company, b => b.ResolveUsing(c => c.Company))
         .ForMember(v => v.Driver, b => b.ResolveUsing(c => c.Driver))
         .ReverseMap();
     });
     _mapper = new Mapper(_config);
 }
コード例 #11
0
 public ServiceController(
     IServiceBusinessService serviceBusinessService,
     IVehicleBusinessService vehicleBusinessService,
     IUserBusinessService userBusinessService)
     : base(userBusinessService)
 {
     this._serviceBusinessService = serviceBusinessService;
     this._vehicleBusinessService = vehicleBusinessService;
     this._config = new MapperConfiguration(
         cfg =>
     {
         cfg.CreateMap <Service, BusinessService.Models.Service>().ReverseMap();
         cfg.CreateMap <EditService, BusinessService.Models.EditService>().ReverseMap();
     });
     this._mapper = new Mapper(this._config);
 }
コード例 #12
0
 public RegistrationPageViewModel(INavigationService navigationService, ISettings settings, IUserBusinessService userBusinessService) : base(navigationService, settings)
 {
     if (navigationService == null)
     {
         throw new ArgumentNullException("navigationService");
     }
     if (settings == null)
     {
         throw new ArgumentNullException("settings");
     }
     if (userBusinessService == null)
     {
         throw new ArgumentNullException("userBusinessService");
     }
     _userBusinessService = userBusinessService;
     _navigationService   = navigationService;
     _settings            = settings;
 }
コード例 #13
0
 public AdminController(IAdminBusinessService adminBusinessService, IUserBusinessService userBusinessService,
                        IBookBusinessService bookBusinessService, IMapper mapper, IWebHostEnvironment hostEnvironment)
     : base(adminBusinessService, userBusinessService, bookBusinessService, mapper, hostEnvironment)
 {
 }
コード例 #14
0
 public UsersController(IUserBusinessService UserBusinessService)
 {
     this.userBusinessService = UserBusinessService;
 }
コード例 #15
0
 public UserController(IUserBusinessService userBusinessService,
                       IMapper mapper, IWebHostEnvironment hostEnvironment) : base(userBusinessService, mapper, hostEnvironment)
 {
 }
コード例 #16
0
 public TransactionController(IBookBusinessService bookBusinessService,
                              IUserBusinessService userBusinessService, IMapper mapper, IWebHostEnvironment hostEnvironment)
     : base(bookBusinessService, mapper, hostEnvironment, userBusinessService)
 {
 }
コード例 #17
0
 public APIOAuthProvider(IUserBusinessService userService, string publicClientId)
 {
     _userService    = userService;
     publicClientId  = publicClientId ?? throw new ArgumentNullException("publicClientId");
     _publicClientId = publicClientId;
 }
コード例 #18
0
ファイル: UserService.cs プロジェクト: leksey12/OnlineQueue
 public UserService(IUserBusinessService userData)
 {
     this.userData = userData;
 }
コード例 #19
0
 public UsersController()
 {
     this.userBusinessService = new UserBusinessService();
 }
コード例 #20
0
 public HomeController(IUserBusinessService _userBusinessService)
 {
     this._userBusinessService = _userBusinessService;
 }
コード例 #21
0
 public UserController(IUserBusinessService userBusinessService)
     : base(userBusinessService)
 {
     this._config = new MapperConfiguration(cfg => { cfg.CreateMap <Models.User, User>().ReverseMap(); });
     this._mapper = new Mapper(this._config);
 }
コード例 #22
0
 public UserController(IUserBusinessService userBusinessService) : base(userBusinessService)
 {
     _userBusinessService = userBusinessService;
 }
コード例 #23
0
 public TelematicsDataController(ITelematicsBusinessService telematicsBusinessService, IVehicleBusinessService vehicleBusinessService, IUserBusinessService userBusinessService)
     : base(userBusinessService)
 {
     _telematicsBusinessService = telematicsBusinessService;
     _vehicleBusinessService    = vehicleBusinessService;
     _config = new MapperConfiguration(cfg =>
     {
         cfg.CreateMap <TelematicsData, BusinessService.Models.TelematicsData>().ReverseMap();
     });
     _mapper = new Mapper(_config);
 }
コード例 #24
0
 public AccountController(ApplicationUserManager userManager, IUserBusinessService userBusinessService)
     : base(userBusinessService)
 {
     this.UserManager = userManager;
 }
コード例 #25
0
 public void BuildUserService(IUserBusinessService userService)
 {
     _parameter.UserService = userService;
 }