public ChargeResultResponse ChargeResult(ChargeResultParams parameters) { ChargeResultResponse response = new ChargeResultResponse(); response.Lsh = parameters.Lsh; try { repository.SaveCharge(parameters); response.RspNo = "000000"; response.RspMsg = "success"; } catch (Exception ex) { log.Error("Got error when save charge: ", ex); response.RspNo = "111111"; response.RspMsg = ex.Message; } return(response); }