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