public ActionResult Receipt(dynamic Response, string refnum) { try { Classes.Paytv.PaytvObj Receipt = new Classes.Paytv.PaytvObj(); //Classes.Power.Receipt Receipt = new Power.Receipt(); dynamic RecieptObj = new JObject(); //string RefNum = Convert.ToString(Response?.tranNum); //var RecieptVal = _dr.GetCustReceipt(RefNum); var RecieptVal = _dr.GetCustReceipt(refnum); if (Response?.returnCode != 1) { // TempData["ErrMsg"] = "Transaction Failed Please Contact our Customer Care"; //1st march // TempData["ErrMsg"] = Response?.returnMsg; } Receipt.CustomerID = RecieptVal[0]; Receipt.Amount = RecieptVal[3]; Receipt.ConvFee = RecieptVal[2]; //Receipt.ConvFee = "0"; Receipt.customerName = RecieptVal[1]; Receipt.Phone = RecieptVal[5]; Receipt.transactionlNo = RecieptVal[6]; Receipt.Service = RecieptVal[7]; Receipt.ErrorMsg = TempData["ErrMsg"].ToString(); /* if (TempData["ErrMsg"] != null) * { * TempData["ErrMsg"] = "Please Contact Admin ! "; * }*/ return(View(Receipt)); } catch (Exception ex) { WebLog.Log(ex.Message.ToString()); return(null); } }