public HttpResponseMessage GetPSVoucherInfo(string ProdName) { var dateStart = DateTime.Now; _performancelog.Debug($"Start,PaymentSourceController,getPSVoucherInfo,{string.Empty},{DateTime.Now:hh.mm.ss.ffffff}"); PSVoucherInfo psvcinfo = _PaymentSourceManager.GetPSVoucherInfo(ProdName); _performancelog.Debug($"End,PaymentSourceController,getPSVoucherInfo,{DateTime.Now.Subtract(dateStart).TotalMilliseconds},{DateTime.Now:hh.mm.ss.ffffff}"); return(Request.CreateResponse(HttpStatusCode.OK, psvcinfo)); }
public PSVoucherInfo GetPSVoucherInfo(string ProdName) { var dateStart = DateTime.Now; Performancelog.Debug($"Start,PaymentSourceManager,GetPSVoucherInfo,{string.Empty},{DateTime.Now:hh.mm.ss.ffffff}"); PSVoucher psvc = _PaymentSourceService.GetPSVoucherInfo(ProdName); if (psvc == null) { return(null); } PSVoucherInfo psvcinfo = new PSVoucherInfo(); psvcinfo.Voucher = psvc; psvcinfo.Logos = _PaymentSourceService.GetPSLogos(ProdName); Performancelog.Debug($"End,PaymentSourceManager,GetPSVoucherInfo,{DateTime.Now.Subtract(dateStart).TotalMilliseconds},{DateTime.Now:hh.mm.ss.ffffff}"); return(psvcinfo); }