public async Task <ActionResult> Edit(EditViewModel model) { if (!ModelState.IsValid) { return(View("_Edit", model)); } await _postCategoryService.EditAsync(model.PostCategoryId, model.PostCategoryName); return(Content("Refresh")); }
public async Task <ActionResult> Edit(EditViewModel model) { if (!ModelState.IsValid) { return(View("_Edit", model)); } await _postCategoryService.EditAsync(model.PostCategoryId, model.PostCategoryName); return(Content("Refresh")); }