Example #1
0
        public void CreateHeaderStatus(int id, ref ApplicationDbContext Context)
        {
            PurchaseOrderHeaderStatus Stat = new PurchaseOrderHeaderStatus();

            Stat.PurchaseOrderHeaderId = id;
            Stat.ObjectState           = Model.ObjectState.Added;
            Context.PurchaseOrderHeaderStatus.Add(Stat);
        }
Example #2
0
 public PurchaseOrderHeaderStatus Add(PurchaseOrderHeaderStatus pt)
 {
     _unitOfWork.Repository <PurchaseOrderHeaderStatus>().Insert(pt);
     return(pt);
 }
Example #3
0
 public void Update(PurchaseOrderHeaderStatus pt)
 {
     pt.ObjectState = ObjectState.Modified;
     _unitOfWork.Repository <PurchaseOrderHeaderStatus>().Update(pt);
 }
Example #4
0
 public void Delete(PurchaseOrderHeaderStatus pt)
 {
     _unitOfWork.Repository <PurchaseOrderHeaderStatus>().Delete(pt);
 }
Example #5
0
 public PurchaseOrderHeaderStatus Create(PurchaseOrderHeaderStatus pt)
 {
     pt.ObjectState = ObjectState.Added;
     _unitOfWork.Repository <PurchaseOrderHeaderStatus>().Insert(pt);
     return(pt);
 }
Example #6
0
        public void DeleteHeaderStatus(int id)
        {
            PurchaseOrderHeaderStatus Stat = Find(id);

            Delete(Stat);
        }