Beispiel #1
0
 public Task <bool> DeleteCodeOfConduct()
 {
     return(Task.Run(() =>
     {
         var agreements = gameData.GetAllAgreements();
         var coc = agreements.FirstOrDefault(x => x.Type.ToLower() == "coc");
         if (coc != null)
         {
             gameData.Remove(coc);
             return true;
         }
         else
         {
             return false;
         }
     }));
 }