public static List <Report_GetPurchaseInvoice_Result> GetPurchaseByInvoiceId(string _purchaseInvoiceId) { List <Report_GetPurchaseInvoice_Result> _si = new List <Report_GetPurchaseInvoice_Result>(); using (AprosysAccountingEntities db = new AprosysAccountingEntities()) { _si = db.Report_GetPurchaseInvoice(_purchaseInvoiceId).ToList(); } return(_si); }