Exemplo n.º 1
0
        //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);
        }
Exemplo n.º 2
0
 //2 getAll purchase
 public static List <PURCHASES> GetPuchases() => PURCHASESDDAL.GetAll();