public JsonResult Edit(Cat model) { var apiResult = new APIResult(); try { CatBll.AddOrUpdate(model, UserContext.CurrentUser.HotelId); } catch (Exception ex) { apiResult.Ret = -1; apiResult.Msg = ex.Message; if (!(ex is OperationExceptionFacade)) { LogFactory.GetLogger().Log(LogLevel.Error, ex); } } //MessageBox.Show(Json(apiResult).ToString()); return(Json(apiResult)); }