public void FindDetail(int LedgerId) { PaymentDetail pod = PDetails.Where(x => x.LedgerId == LedgerId).FirstOrDefault(); if (pod != null) { pod.toCopy <PaymentDetail>(PDetail); } }
public void ClearDetail() { PaymentDetail pod = new PaymentDetail(); pod.toCopy <PaymentDetail>(PDetail); }