public PostsController(CarSellerContext context, IMapper mapper)
        {
            var unitOfWork     = new UnitOfWork(context);
            var postRepository = new PostRepository(context);

            _postService = new PostViewModelService(unitOfWork, postRepository, mapper);
        }
        public NotificationsController(CarSellerContext context, IMapper mapper)
        {
            var repository = new NotificationRepository(context);
            var uow        = new UnitOfWork(context);

            _notificationService = new NotificationViewModelService(uow, repository, mapper);
        }
Exemple #3
0
        public PostCategoryController(CarSellerContext context, IMapper mapper)
        {
            var repository = new PostCategoryRepository(context);
            var uow        = new UnitOfWork(context);

            _testMapper          = mapper;
            _postCategoryService = new PostCategoryViewModelService(repository, uow, mapper);
        }
Exemple #4
0
 public PostRepository(CarSellerContext context) : base(context)
 {
 }
Exemple #5
0
 public BaseRepository(CarSellerContext context)
 {
     _context = context;
 }
Exemple #6
0
 public UserRepository(CarSellerContext context) : base(context)
 {
 }
 public NotificationRepository(CarSellerContext context) : base(context)
 {
 }
Exemple #8
0
 public UnitOfWork(CarSellerContext context)
 {
     _context = context;
 }