Пример #1
0
 public PostsController(PostServices postServices,TagServices tagService ,CommentServices commentService,AppConfiguration config)
 {
     this.postServices = postServices;
     this.commentService = commentService;
     this.tagService = tagService;
     this.config = config;
 }
Пример #2
0
 public MetaWeblogAPI()
 {
     try
     {
         postServices = ObjectFactory.GetInstance<PostServices>();
         userServices = ObjectFactory.GetInstance<UserServices>();
         tagServices = ObjectFactory.GetInstance<TagServices>();
     }
     catch
     {
         Debug.WriteLine(ObjectFactory.WhatDoIHave());
         throw;
     }
 }