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