public static RegistrationKey GenerateKey(int clubID)
 {
     RegistrationKey key = new RegistrationKey();
     key.CreatedOn = DateTime.Now;
     key.ClubID = clubID;
     key.Key = GenerateKeyString();
     return key;
 }
 public async Task<string> CreateLink(RegistrationKey link)
 {
     var user = await GetUserAsync();
     link.SetCreated(user);
     link.Key = RegistrationKey.GenerateKeyString();
     link.Club = await db.Clubs.FindAsync(link.ClubID);
     db.RegisterKeys.Add(link);
     await db.SaveChangesAsync();
     return JsonConvert.SerializeObject(link, Formatting.None);
 }