public MaterialPlanForProdOrder Add(MaterialPlanForProdOrder pt) { _unitOfWork.Repository <MaterialPlanForProdOrder>().Insert(pt); return(pt); }
public void Delete(MaterialPlanForProdOrder pt) { _unitOfWork.Repository <MaterialPlanForProdOrder>().Delete(pt); }
public void Update(MaterialPlanForProdOrder pt) { pt.ObjectState = ObjectState.Modified; _unitOfWork.Repository <MaterialPlanForProdOrder>().Update(pt); }
public MaterialPlanForProdOrder Create(MaterialPlanForProdOrder pt) { pt.ObjectState = ObjectState.Added; _unitOfWork.Repository <MaterialPlanForProdOrder>().Insert(pt); return(pt); }