public async Task <IActionResult> OnPostAsync() { var result = await this.OnPostHandlerAsync( () => _featureService.CategoryAddOrUpdateAsync(NewCategory, !NewCategory.IsNew, true), typeof(IndexModel).Page(), typeof(AddModel).Page()); return(result); }