public AdminController(IUnitOfWork unitOfWork,
                        UserManager <ApplicationUser> userManager,
                        RoleManager <IdentityRole> roleManager,
                        IOptions <AppSettings> appSettings,
                        ICloudniaryService cloudniaryService)
 {
     this.unitOfWork        = unitOfWork;
     this.userManager       = userManager;
     this.roleManager       = roleManager;
     this.appSettings       = appSettings;
     this.cloudniaryService = cloudniaryService;
 }
示例#2
0
 public DashboardController(IUnitOfWork unitOfWork,
                            ICloudniaryService cloudniaryService) : base(unitOfWork)
 {
     this.UnitOfWork        = unitOfWork;
     this.CloudniaryService = cloudniaryService;
 }