Exemplo n.º 1
0
 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"];
 }
Exemplo n.º 2
0
 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"];
 }