public PostOptionsController(
     IPostOptionsRepository postOptionsRepository,
     IUserService userService)
 {
     _postOptionsRepository = postOptionsRepository;
     _userService           = userService;
 }
Пример #2
0
 public PostRepository(IUserService userService,
                       IUnitOfWork unitOfWork,
                       IMapper mapper,
                       IPostOptionsRepository postOptionsRepository)
 {
     _userService           = userService;
     _unitOfWork            = unitOfWork;
     _mapper                = mapper;
     _postOptionsRepository = postOptionsRepository;
     _currentUserId         = _userService.GetCurrentUserGuid();
 }