コード例 #1
0
 public EditModel(ICarService carService, IReservationService reservationService,
                  ILogger <EditModel> logger, IEmailSender emailSender,
                  IRazorViewToStringRender render, UserManager <User> userManager
                  , ICloudStorageService cloudStorageService)
 {
     _carService          = carService;
     _reservationService  = reservationService;
     _logger              = logger;
     _emailSender         = emailSender;
     _render              = render;
     _userManager         = userManager;
     _cloudStorageService = cloudStorageService;
 }
コード例 #2
0
        public ForgotPasswordModel(
            UserManager <User> userManager,
            IEmailSender emailSender,
            ICloudStorageService cloudStorageService,
            IRazorViewToStringRender render,
            IStringLocalizerFactory factory)
        {
            _userManager         = userManager;
            _emailSender         = emailSender;
            _cloudStorageService = cloudStorageService;
            _render = render;

            var type         = typeof(IdentityResource);
            var assemblyName = new AssemblyName(type.GetTypeInfo().Assembly.FullName);

            _localizer = factory.Create("IdentityResource", assemblyName.Name);
        }
コード例 #3
0
 public CreateConfirmModel(CarRentalDbContext context, UserManager <User> userManager,
                           IReservationService reservationService, IVehicleModelService vehicleModelService,
                           IAddressService addressService, ICarService carService,
                           ILogger <CreateConfirmModel> logger, IEmailSender emailSender,
                           IRazorViewToStringRender render,
                           ICloudStorageService cloudStorageService)
 {
     _context             = context;
     _userManager         = userManager;
     _reservationService  = reservationService;
     _vehicleModelService = vehicleModelService;
     _addressService      = addressService;
     _carService          = carService;
     _logger              = logger;
     _emailSender         = emailSender;
     _render              = render;
     _cloudStorageService = cloudStorageService;
 }