コード例 #1
0
        public async Task <ActionResult> Edit(EditViewModel model)
        {
            if (!ModelState.IsValid)
            {
                return(View("_Edit", model));
            }

            await _postCategoryService.EditAsync(model.PostCategoryId, model.PostCategoryName);

            return(Content("Refresh"));
        }