예제 #1
0
        public CategoryController()
        {
            PostLogic = UIDependencyResolve <IPostLogic> .ResolveDependency();

            CategoryControllerMapper = new MapperConfiguration(cfg =>
            {
                cfg.CreateMap <PostDTO, PostModel>();
                cfg.CreateMap <CommentsDTO, CommentsModel>();
                cfg.CreateMap <CategoryDTO, CategoryModel>();
                cfg.CreateMap <PostModel, PostDTO>();
                cfg.CreateMap <CommentsModel, CommentsDTO>();
                cfg.CreateMap <CategoryModel, CategoryDTO>();
            }).CreateMapper();
        }
예제 #2
0
 public PostController()
 {
     PostLogic = UIDependencyResolve <IPostLogic> .ResolveDependency();
 }
예제 #3
0
 public LoginController()
 {
     this.UserLogic = UIDependencyResolve <IUserLogic> .ResolveDependency();
 }
예제 #4
0
 public PageController()
 {
     this.PageLogic = UIDependencyResolve <IPageLogic> .ResolveDependency();
 }