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