public ProblemQueryService( IMathHubDbContext mathHubDbContext, IUserQueryService userQueryService, IMainPostQueryService mainPostQueryService) { ctx = mathHubDbContext.GetDbContext(); this._userQueryService = userQueryService; this._mainPostQueryService = mainPostQueryService; }
public DiscussionQueryService( IRepository<Discussion> discussionRepository, IMathHubDbContext context, IMainPostQueryService mainPostQuerySerivce) { this.ctx = context.GetDbContext(); this._discussionRepository = discussionRepository; this._mainPostQuerySerivce = mainPostQuerySerivce; }