Example #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();
        }
Example #2
0
 public PostController()
 {
     PostLogic = UIDependencyResolve <IPostLogic> .ResolveDependency();
 }
Example #3
0
 public LoginController()
 {
     this.UserLogic = UIDependencyResolve <IUserLogic> .ResolveDependency();
 }
Example #4
0
 public PageController()
 {
     this.PageLogic = UIDependencyResolve <IPageLogic> .ResolveDependency();
 }