예제 #1
0
        public ActionResult CreateIndex()
        {
            string path = "";

            path = ControllerContext.HttpContext.Server.MapPath("~");
            PostManagement postManagement = new PostManagement(path);

            //ایجاد پست ها
            repo.CreatePost();

            //ایجاد صفحه اصلی
            CreateIndexPage(path, postManagement);

            //ایجاد صفحه کتگوری ها
            PostController postCtr = new PostController();

            postCtr.CreateAllCategory(path);

            return(View("Index"));
        }