public ActionResult SettlementPro(string id) { string[] arr = id.Split('@'); CSettlement CST = new CSettlement(); ViewData["PID"] = arr[1]; CST.StrCID = arr[0]; CST.StrDebtAmount = ContractMan.getNewDebtAmountPro(arr[0]); if (CST.StrDebtAmount == 0) { CST.StrIsDebt = 0; } else { CST.StrIsDebt = 1; } return(View(CST)); }