Exemple #1
0
 public AccountController(IunitofWork _unitOfWork, UserManager <IdentityUser> _userManager, SignInManager <IdentityUser> _signInManager, RoleManager <IdentityRole> _roleManager)
 {
     unitOfWork    = _unitOfWork;
     userManager   = _userManager;
     signInManager = _signInManager;
     roleManager   = _roleManager;
 }
 public PhotosController(IHostingEnvironment host, IVehicleRepository repository,
                         IunitofWork unitOfWork, IMapper mapper, IOptionsSnapshot <PhotoSettings> options,
                         IPhotoRepository photoRepository)
 {
     this.photoRepository = photoRepository;
     this.photoSettings   = options.Value;
     this.mapper          = mapper;
     this.unitOfWork      = unitOfWork;
     this.repository      = repository;
     this.host            = host;
 }
Exemple #3
0
 public VehichlesController(IMapper mapper, IVehicleRepository repository, IunitofWork unitOfwork)
 {
     this.unitOfwork = unitOfwork;
     this.repository = repository;
     this.mapper     = mapper;
 }
Exemple #4
0
 public HomeController(IunitofWork db, UserManager <IdentityUser> userManager)
 {
     _db          = db;
     _userManager = userManager;
 }