Beispiel #1
0
 public static async Task <Member> GetMember(this MyCouchStore db, ulong id)
 {
     if (await db.ExistsAsync(id.ToString()))
     {
         return(await db.GetByIdAsync <Member>(id.ToString()));
     }
     else
     {
         throw new CommandFailedException($"User with id {id} is not in the backend database... Go ask Keith about it");
     }
 }