public IList <Bid> GetAllEarnedBids() { try { return(BidController.Instance().GetAllEarnedBids()); } catch (Exception ex) { throw new FaultException(ex.Message); } }
public bool IsBidWon(Bid bid) { try { return(BidController.Instance().IsBidWon(bid)); } catch (Exception ex) { throw new FaultException(ex.Message); } }
public bool BidExpired(int productId) { try { return(BidController.Instance().BidExpired(productId)); } catch (Exception ex) { throw new FaultException(ex.Message); } }
// TODO: fix all the return list methods (try to return list of bidDtos) public void MakeBid(int userId, int productId, int coins) { try { BidController.Instance().MakeBid(userId, productId, coins); } catch (Exception ex) { throw new FaultException(ex.Message); } }
public bool SetWinnersForProducts() { try { return(BidController.Instance().SetWinnersForProducts()); } catch (Exception ex) { throw new FaultException(ex.Message); } }
public IList <BidDto> GetAllBidsByProductId(int productId) { try { var bids = BidController.Instance().GetAllBidsByProductId(productId); return(TransferCollectionData(bids)); } catch (Exception ex) { throw new FaultException(ex.Message); } }
public BidDto GetBidById(int bidId) { try { var bidDb = BidController.Instance().GetBidByIdWithAllObjects(bidId); return(MapDbBidToBidDto(bidDb)); } catch (Exception ex) { throw new FaultException(ex.Message); } }
public bool CheckCoinsValid(int productId, double coins) { return(BidController.Instance().CheckCoinsValid(productId, coins)); }