public async Task <IActionResult> Create(CategoryAddModel categoryAddModel) { if (ModelState.IsValid) { await _categoryApiService.InsertAsync(categoryAddModel); return(RedirectToAction("Index")); } return(View(categoryAddModel)); }