public UserController(OnlineKnowledgeDbContext context, IMapper mapper, IUserRepository repository, IHostingEnvironment hostingEnvironment) { this.context = context; this.mapper = mapper; this.repository = repository; this.hostingEnvironment = hostingEnvironment; }
public UserRepository(OnlineKnowledgeDbContext context, IHostingEnvironment hostingEnvironment, IMapper mapper, UserManager <User> userManager) { this.context = context; this.hostingEnvironment = hostingEnvironment; this.mapper = mapper; this.userManager = userManager; }
//[ModelBinder(Photo)] public PhotoController(OnlineKnowledgeDbContext context, IPhotoRepository repository, IHostingEnvironment hostingEnvironment, IMapper mapper ) { this.context = context; this.repository = repository; this.hostingEnvironment = hostingEnvironment; this.mapper = mapper; }
public PhotoRepository(OnlineKnowledgeDbContext context, IMapper mapper, IHostingEnvironment hostingEnvironment //IUnitOfWork unitOfWork ) { this.context = context; this.mapper = mapper; this.hostingEnvironment = hostingEnvironment; // this.unitOfWork = unitOfWork; }