public String Get(Guid tableId) { var table = TableRepo.Find(tableId); if (table != null) { return(table.GetScriptAddress()); } else { throw new ArgumentException("Table not found"); } }
private Models.Messages.ActionMessageResponse ProcessBigBlind(Models.Messages.ActionMessage message) { if (message != null) { //Is the blind the correct amount? var table = TableRepo.Find(message.TableId); if (table != null && message.Amount == table.BigBlind) { //handRepo.AddMessage(message); return(new Models.Messages.ActionMessageResponse()); } else { throw new ArgumentException(); } } else { throw new ArgumentNullException(); } }