public PostsController(PostServices postServices,TagServices tagService ,CommentServices commentService,AppConfiguration config) { this.postServices = postServices; this.commentService = commentService; this.tagService = tagService; this.config = config; }
public MetaWeblogAPI() { try { postServices = ObjectFactory.GetInstance<PostServices>(); userServices = ObjectFactory.GetInstance<UserServices>(); tagServices = ObjectFactory.GetInstance<TagServices>(); } catch { Debug.WriteLine(ObjectFactory.WhatDoIHave()); throw; } }