public HomeController(PostsRepository postsRepository)
 {
     this.postsRepository = postsRepository;
 }
 public HomeController()
 {
     postsRepository = new PostsRepository();
 }