public ObservableCollection<Dictionary<string, object>> GetReceivepayment(string PaymentID)
{
ObservableCollection<Dictionary<string, object>> detailcollection = new ObservableCollection<Dictionary<string, object>>();
ObservableCollection<Dictionary<string, object>> invoicesandcreditsCollection = new ObservableCollection<Dictionary<string, object>>();
Dictionary<string, object> detail;//= new Dictionary<string, object>();
Dictionary<string, object> ReceivepaymentHeader;
Dictionary<string, object> Receivepaymentlist;
//string PaymentID = id;
if (db == null)
db = new BizSight_Sample_Product_CompanyContext();
ReceivePayment _ReceivePaymentHeader = (from rec in db.ReceivePayment where rec.ReceivePaymentId == PaymentID.ToString() select rec).FirstOrDefault();
Receivepaymentlist = new Dictionary<string, object>();
ReceivepaymentHeader = new Dictionary<string, object>();
}