예제 #1
0
        public void DeleteSave(BetAuctionBO betAuctionBO)
        {
            var betAuction = mapper.Map <BetAuction>(betAuctionBO);

            unitOfWork.BetAuctions.Delete(betAuction.Id);
            unitOfWork.BetAuctions.Save();
        }
예제 #2
0
        public void Save(BetAuctionBO betAuctionBO)
        {
            var betAuction = mapper.Map <BetAuction>(betAuctionBO);

            if (betAuctionBO.Id == 0)
            {
                Add(betAuction);
            }
            else
            {
                Update(betAuction);
            }
            unitOfWork.BetAuctions.Save();
        }