public ResponseInfoModel EditInfo([FromBody] UpdateCategoryInput input) { ResponseInfoModel json = new ResponseInfoModel() { Success = 1, Result = new object() }; try { if (!_articleCategoryService.Editinfo(input)) { json.Success = 0; json.Result = LocalizationConst.UpdateFail; } else { _logService.Insert(new Log() { ActionContent = LocalizationConst.Update, SourceType = _moduleName, SourceID = input.ID, LogTime = DateTime.Now, LogUserID = input.ModifyUser, LogIPAddress = IPHelper.GetIPAddress, }); } } catch (Exception e) { DisposeUserFriendlyException(e, ref json, "api/category/editInfo", LocalizationConst.UpdateFail); } return(json); }