public string GetBasketPid(string custNo) { BasketGetPidT basketGetPid = new CartDac().GetBasketPid(custNo); string pBid; if (basketGetPid == null) { pBid = GenerateGUID(); } else { if (basketGetPid.Pid.Length > 0) { pBid = basketGetPid.Pid; } else { pBid = GenerateGUID(); } } return pBid; }
public string CheckBasketPid(string custNo) { BasketGetPidT basketGetPid = new CartDac().GetBasketPid(custNo); string pBid = string.Empty; if (basketGetPid != null) { if (basketGetPid.Pid.Length > 0) { pBid = basketGetPid.Pid; } } return pBid; }