//GET: Create public async Task <IActionResult> Create() { SubCategoryAndCategoryViewModel model = new SubCategoryAndCategoryViewModel() { CategoryList = await _categoryService.FindAllAsync(), SubCategory = new SubCategory(), SubCategoryList = await _subCategoryService.FindAllNameSCAsync(), StatusMessage = "", }; return(View(model)); }