//crudoperations //1 get purchase details using sellerid public static IEnumerable <PURCHASES> GetSellerPurchase(int sellerid) { IEnumerable <PURCHASES> purchases = PURCHASESDDAL.GetAll(); var list = from p in purchases where p.SELLERID.Equals(sellerid) select p; return(list); }
//2 getAll purchase public static List <PURCHASES> GetPuchases() => PURCHASESDDAL.GetAll();