public static IEnumerable <PURCHASEDETAILS> GetPurchaseDetail(int purchaseNo) { IEnumerable <PURCHASEDETAILS> list = PURCHASEDETAILSDAL.GetAll(); var purchaseDetails = from pd in list where pd.PURCHASENO.Equals(purchaseNo) select pd; return(purchaseDetails); }
public static IEnumerable <PURCHASEDETAILS> SellerOrderDetails(int sellerId) { List <PURCHASES> purchases = PURCHASESDDAL.GetPurchase(sellerId); List <PURCHASEDETAILS> purchaseDetails = PURCHASEDETAILSDAL.GetAll(); foreach (PURCHASES ps in purchases) { var details = from pd in purchaseDetails where pd.PURCHASENO.Equals(ps.PURCHASENO) select pd; return(details); } return(new List <PURCHASEDETAILS>()); }
public static bool InsertPurchaseDetails(PURCHASEDETAILS purchaseDetails) => PURCHASEDETAILSDAL.InsertPurchaseDetails(purchaseDetails);
public static List <PURCHASEDETAILS> GetAllPurchaseDetails() => PURCHASEDETAILSDAL.GetAll();