예제 #1
0
        public async Task <IActionResult> Create()
        {
            var model = new PostInput
            {
                Categories = await _taxonomyService.GetCategoriesSelectListAsync()
            };


            return(View(model));
        }
예제 #2
0
        public async Task <IActionResult> Create()
        {
            var model = new PostInput
            {
                ActionName       = "Create",
                CreateDateTime   = DateTime.Now,
                ModifiedDateTime = DateTime.Now,
                PublishDateTime  = DateTime.Now,
                PublishStatus    = PublishStatus.Draft,
                MetaRobots       = RobotsState.Global,
                Categories       = await _taxonomyService.GetCategoriesSelectListAsync(),
                TagsPrefill      = new string[]
                {
                },
            };

            return(View(model));
        }