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