public async Task <IActionResult> Update(int id) { var category = await _categoryApiService.GetAsync(id); await _categoryApiService.Update(category); //return RedirectToAction("Index"); return(View(category)); }