public double Ping() { using (var tMeter = new TimeMeterLog(_nLog, "Ping")) { tMeter.Info("-1"); return(-1); } }
public CResult Ping() { using (var tMeter = new TimeMeterLog(_nLog, "Ping")) { tMeter.Info("-1"); return "-1".ToCResult(); } }
public string CashInResult(string key) { using (var tMeter = new TimeMeterLog(_nLog, "CashInResult")) { var result = JsonConvert.SerializeObject(new { Value = "Some Data" }); tMeter.Info(result); return(result); } }
//reinoieste datele la client pentru a vedea cit a achitat in timp real public CResult GetPayedCashCodeAmount() { using (var tMeter = new TimeMeterLog(_nLog, "GetPayedCashCodeAmount")) { var resut = PayedAmount.Sum(); tMeter.Info(resut.ToString(CultureInfo.InvariantCulture)); return resut.ToCResult(); } }
//Invoice details public CResult GetInvoiceDetails(string authKey, string invoiceDetails) { using (var tMeter = new TimeMeterLog(_nLog, "GetInvoiceDetails")) { var result = JsonConvert.SerializeObject(new { OrderId = 100, AmountToPay = 100 }); tMeter.Info(JsonConvert.SerializeObject(result)); return result.ToCResult(); } }
//Start proces achitare public CResult PayWithCashIn(string amountToPay) { PayedAmount.Clear(); using (var tMeter = new TimeMeterLog(_nLog, "PayWithCashIn")) { var result = JsonConvert.SerializeObject(new { Value = "Some Data" }); tMeter.Info(amountToPay); tMeter.Info(JsonConvert.SerializeObject(result)); var payedAmount = CashCodeGetPayments(Convert.ToDecimal(amountToPay)); return payedAmount.ToCResult(); } }