Exemplo n.º 1
0
        public HomeController(IPostsDataService postsData, IMappingService mappingService)
        {
            if (postsData == null)
            {
                throw new ArgumentNullException(nameof(postsData));
            }

            if (mappingService == null)
            {
                throw new ArgumentNullException(nameof(mappingService));
            }

            this.postsData      = postsData;
            this.mappingService = mappingService;
        }
Exemplo n.º 2
0
 public HomeController(IPostsDataService postsData)
 {
     this.postsData = postsData;
 }
Exemplo n.º 3
0
 public BlogController(IPostsDataService postsData, ITagsDataService tagsData)
 {
     this.postsData = postsData;
     this.tagsData = tagsData;
 }