Exemplo n.º 1
0
        public IdentityUnitOfWork(

            FriendsAndTravelDbContext db,
            SignInManager <User> signInManager,
            UserManager <User> userManager,
            RoleManager <IdentityRole> roleManager,
            ICategoryRepository categoryRepository,
            IUserCategoryRepository userCategoryRepository,
            IUserProfileRepository UserProfileRepository,
            IUserEventRepository userEventRepository,
            IEventRepository eventRepository,
            IEventCategoryRepository eventCategoryRepository,
            IPhotoRepository photoRepository,
            IEventPhotoRepository eventPhotoRepository,
            ILocationRepository locationRepository
            )
        {
            Database                   = db;
            UserManager                = userManager;
            RoleManager                = roleManager;
            SignInManager              = signInManager;
            UserCategoryRepository     = userCategoryRepository;
            CategoryRepository         = categoryRepository;
            this.userProfileRepository = UserProfileRepository;
            UserEventRepository        = userEventRepository;
            EventCategoryRepository    = eventCategoryRepository;
            EventRepository            = eventRepository;
            PhotoRepository            = photoRepository;
            EventPhotoRepository       = eventPhotoRepository;
            LocationRepository         = locationRepository;
        }
Exemplo n.º 2
0
 public EventService(FriendsAndTravelDbContext db, IMapper mapper, IPhotoService photoService, IUnitOfWork unitOfWork)
 {
     this.unitOfWork   = unitOfWork;
     this.photoService = photoService;
     this.mapper       = mapper;
     this.db           = db;
 }
Exemplo n.º 3
0
 public PostService(FriendsAndTravelDbContext db, IPhotoService photoService, IMapper mapper, ICommentService commentService)
 {
     this.mapper         = mapper;
     this.db             = db;
     this.photoService   = photoService;
     this.commentService = commentService;
 }
Exemplo n.º 4
0
 public ProfileController(FriendsAndTravelDbContext context, IHostingEnvironment appEnvironment, IMapper mapper, UserManager <User> userManager, IPostService postService, ICategoryService categoryService, IEventService eventService, ICommentService commentService)
 {
     this.commentService = commentService;
     this.eventService   = eventService;
     _categoryService    = categoryService;
     _postService        = postService;
     _userManager        = userManager;
     _mapper             = mapper;
     _context            = context;
     _appEnvironment     = appEnvironment;
 }
Exemplo n.º 5
0
 public EditProfileController(
     UserManager <User> userManager,
     SignInManager <User> signInManager,
     ILogger <EditProfileController> logger, ICategoryService _categoryService, FriendsAndTravelDbContext context, IUserService _userService)
 {
     _context        = context;
     _userManager    = userManager;
     _signInManager  = signInManager;
     _logger         = logger;
     categoryService = _categoryService;
     userService     = _userService;
 }
Exemplo n.º 6
0
 public EventRepository(FriendsAndTravelDbContext db) : base(db)
 {
 }
 public HomeController(FriendsAndTravelDbContext context, IHostingEnvironment appEnvironment)
 {
     _context        = context;
     _appEnvironment = appEnvironment;
 }
 public UserProfileRepository(FriendsAndTravelDbContext context) : base(context)
 {
 }
 public CategoryRepository(FriendsAndTravelDbContext db) : base(db)
 {
 }
Exemplo n.º 10
0
 public LocationRepository(FriendsAndTravelDbContext context) : base(context)
 {
 }
Exemplo n.º 11
0
 public PhotoRepository(FriendsAndTravelDbContext db) : base(db)
 {
 }
Exemplo n.º 12
0
 public CommentService(FriendsAndTravelDbContext db, IMapper mapper)
 {
     this.mapper = mapper;
     this.db     = db;
 }
Exemplo n.º 13
0
 public PhotoService(FriendsAndTravelDbContext db)
 {
     this.db = db;
 }
Exemplo n.º 14
0
 public Repository(FriendsAndTravelDbContext mainDbContext)
 {
     context = mainDbContext;
     dbSet   = context.Set <TEntity>();
 }