public JsonResult YhEdit(PosConsume model) { var apiResult = new APIResult(); try { PosConsumeBll.YhEdit(model); apiResult.SeqId = model.Id; } catch (Exception ex) { apiResult.Ret = -1; apiResult.Msg = ex.Message; } return(Json(apiResult)); }