public PostsController(IPostDataProvider PostDataProvider)
 {
     _postDataProvider = PostDataProvider;
 }
예제 #2
0
 /// <summary>
 /// Creates a new post controller.
 /// </summary>
 /// <param name="postDataProvider">A post data provider, injected by the startup.</param>
 public PostsController(IPostDataProvider postDataProvider)
 {
     this.postDataProvider = postDataProvider;
 }