public void DeleteSave(BetAuctionBO betAuctionBO) { var betAuction = mapper.Map <BetAuction>(betAuctionBO); unitOfWork.BetAuctions.Delete(betAuction.Id); unitOfWork.BetAuctions.Save(); }
public void Save(BetAuctionBO betAuctionBO) { var betAuction = mapper.Map <BetAuction>(betAuctionBO); if (betAuctionBO.Id == 0) { Add(betAuction); } else { Update(betAuction); } unitOfWork.BetAuctions.Save(); }