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