Beispiel #1
0
        public void Delete(string rpNo)
        {
            RequisitionPurchase rp = context.RequisitionPurchases.FirstOrDefault(p => p.No == rpNo);

            context.RequisitionPurchases.Remove(rp);

            context.SaveChanges();
        }
Beispiel #2
0
        public RequisitionPurchase GetByRpNo(string rpNo)
        {
            RequisitionPurchase rp = context.RequisitionPurchases.FirstOrDefault(p => p.No == rpNo);

            return(rp);
        }
Beispiel #3
0
        public RequisitionPurchase GetById(int id)
        {
            RequisitionPurchase rp = context.RequisitionPurchases.FirstOrDefault(p => p.Id == id);

            return(rp);
        }