public MainPostQueryService( IMathHubDbContext mathHubDbContext, IPostQueryService postQueryService) { this.ctx = mathHubDbContext.GetDbContext(); this._postQueryService = postQueryService; }
public UserQueryService( IMathHubDbContext MathHubDbContext, IAuthenticationService authenticationService) { ctx = MathHubDbContext.GetDbContext(); this._authenticationService = authenticationService; }
public CommentCommandService( IRepository<Comment> commentRepository, IMathHubDbContext context) { this.ctx = context.GetDbContext();; this.commentRepository = commentRepository; }
public DiscussionCommandService( IRepository<Discussion> discussionRepository, IMathHubDbContext context) { this.ctx = context.GetDbContext(); this.discussionRepository = discussionRepository; }
public BlogCommandService( IRepository<Blog> blogRepository, IMathHubDbContext context) { this.ctx = context.GetDbContext(); this.blogRepository = blogRepository; }
public ProblemQueryService( IMathHubDbContext mathHubDbContext, IUserQueryService userQueryService, IMainPostQueryService mainPostQueryService) { ctx = mathHubDbContext.GetDbContext(); this._userQueryService = userQueryService; this._mainPostQueryService = mainPostQueryService; }
public TagCommandService( IMathHubDbContext ctx, IRepository<Tag> tagRepository, ILogger logger) { this.ctx = ctx.GetDbContext(); this.tagRepository = tagRepository; this.logger = logger; }
public FormAuthenticationService(IMathHubDbContext mathHubDbContext) { // temporary login with Thanh Hai User ctx = mathHubDbContext.GetDbContext(); if (WebSecurity.IsAuthenticated) { user = ctx.Users.FirstOrDefault(t => t.Username.Equals(WebSecurity.CurrentUserName)); } }
public DiscussionQueryService( IRepository<Discussion> discussionRepository, IMathHubDbContext context, IMainPostQueryService mainPostQuerySerivce) { this.ctx = context.GetDbContext(); this._discussionRepository = discussionRepository; this._mainPostQuerySerivce = mainPostQuerySerivce; }
public ProblemCommandService( IMathHubDbContext MathHubDbContext, IRepository<Problem> problemRepository, IMainPostCommandService mainPostCommandService, ILogger logger ) { this.ctx = MathHubDbContext.GetDbContext(); this.problemRepository = problemRepository; this.mainPostCommandService = mainPostCommandService; this.logger = logger; }
public UserCommandService( IMathHubDbContext context, IRepository<User> userRepository, IRepository<Profile> profileRepository, IRepository<Image> imageRepository, IRepository<Activity> activityRepository, ILogger logger) { this.ctx = context.GetDbContext(); this.userRepository = userRepository; this.profileRepository = profileRepository; this.imageRepository = imageRepository; this.activityRepository = activityRepository; this.logger = logger; }
public MainPostCommandService( IMathHubDbContext MathHubDbContext, IRepository<Comment> commentRepository, IRepository<Reply> replyRepository, IRepository<PostTag> postTagRepository, IRepository<FavoritePost> favoritePostRepository, IRepository<Share> shareRepository, IAuthenticationService authenticationService, ILogger logger) { this.ctx = MathHubDbContext.GetDbContext(); this.replyRepository = replyRepository; this.commentRepository = commentRepository; this.postTagRepository = postTagRepository; this.authenticationService = authenticationService; this.favoritePostRepository = favoritePostRepository; this.shareRepository = shareRepository; this.logger = logger; }
public PermissionQueryService( IMathHubDbContext context) { this.ctx = context.GetDbContext(); }
public PermissionCommandService( IMathHubDbContext context) { this.ctx = context.GetDbContext(); }
public PostQueryService(IMathHubDbContext mathHubDbContext) { this.ctx = mathHubDbContext.GetDbContext(); }