public async Task <IActionResult> Create() { var model = new PostInput { Categories = await _taxonomyService.GetCategoriesSelectListAsync() }; return(View(model)); }
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)); }