public BlogController(IUserRepository users, IBlogsRepository blogs, IPostRepository articles, IImageStorable imageStorable, IConfiguration configuration) { this.blogs = blogs; this.articles = articles; this.imageStorable = imageStorable; this.imageStorable.Root = configuration["ImageRoot"]; }
public PostController(IPostRepository posts, IBlogsRepository blogs, ICommentRepository comments, IUserRepository users, IHostingEnvironment appEnvironment, IImageStorable imageStorable, IConfiguration configuration) { this.appEnvironment = appEnvironment; this.imageStorable = imageStorable; this.posts = posts; this.blogs = blogs; this.comments = comments; this.users = users; this.imageStorable.Root = configuration["ImageRoot"]; }