public void CreateHeaderStatus(int id, ref ApplicationDbContext Context) { PurchaseOrderHeaderStatus Stat = new PurchaseOrderHeaderStatus(); Stat.PurchaseOrderHeaderId = id; Stat.ObjectState = Model.ObjectState.Added; Context.PurchaseOrderHeaderStatus.Add(Stat); }
public PurchaseOrderHeaderStatus Add(PurchaseOrderHeaderStatus pt) { _unitOfWork.Repository <PurchaseOrderHeaderStatus>().Insert(pt); return(pt); }
public void Update(PurchaseOrderHeaderStatus pt) { pt.ObjectState = ObjectState.Modified; _unitOfWork.Repository <PurchaseOrderHeaderStatus>().Update(pt); }
public void Delete(PurchaseOrderHeaderStatus pt) { _unitOfWork.Repository <PurchaseOrderHeaderStatus>().Delete(pt); }
public PurchaseOrderHeaderStatus Create(PurchaseOrderHeaderStatus pt) { pt.ObjectState = ObjectState.Added; _unitOfWork.Repository <PurchaseOrderHeaderStatus>().Insert(pt); return(pt); }
public void DeleteHeaderStatus(int id) { PurchaseOrderHeaderStatus Stat = Find(id); Delete(Stat); }