public DatabaseCode CancelBid(int bidID, Guid userID) { if (bidRepository.DoesBidBelongToUser(bidID, userID)) { return(bidRepository.CancelBid(bidID, userID)); } return(DatabaseCode.NotAllowed); }