public PostController(IDiscussionsContext context, IUsageContext usageContext, IPostRepository<Post> postRepository, IUsersRepository<User> userRepository, IDiscussionRepository<Discussion> discussionRepository, ILogRepository<Log> logRepository, ILogTypeRepository<LogType> logTypeRepository) { _context = context; _usageContext = usageContext; _postRepository = postRepository; _userRepository = userRepository; _discussionRepository = discussionRepository; _logRepository = logRepository; _logTypeRepository = logTypeRepository; Mapper.AddProfile<PostsMappingProfile>(); }
public override void Use(IUsageContext context) { context.Use(this); }
public override bool CanUse(IUsageContext context) { return(context.CanUse(this)); }
public virtual void Use(IUsageContext context) { context.Use(this); }
public virtual bool CanUse(IUsageContext context) { return(false); }