Exemplo n.º 1
0
 public static bool TryGetVenda(ulong id, int slot, out RPGVenda venda)
 {
     venda = ColecaoVenda.Find(x => x.JogadorId == id && x.Slot == slot).FirstOrDefault();
     if (venda != null)
     {
         return(true);
     }
     return(false);
 }
Exemplo n.º 2
0
 public static void EditVenda(RPGVenda venda) => ColecaoVenda.ReplaceOne(x => x.JogadorId == venda.JogadorId, venda);