public PostsController(IPostDataProvider PostDataProvider)
 {
     _postDataProvider = PostDataProvider;
 }
Beispiel #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;
 }