//TODO 2.1.1.a Now we will create four functions, create, delete, update, and get.  We will start with the get because that one will be the most straight forward.
 public Account GetAccountBy(string userName)
 {
     //TODO 2.1.1.c Put the entire thing in a try catch because it could fail if Cosmos is not online.
     try
     {
         IQueryable <Account> query = client.CreateDocumentQuery <Account>(            //TODO 2.1.1.d We will now query Cosmos using the CreateDocumentQuery Function.  We specify that it is of type Account, so that it will return an object that is an account.
             dbHandler.GetCollectionUri())
                                      .Where(account => account.UserName == userName); //TODO 2.1.1.e We then say that the userName (which will be our partition key) must equal the username that we provide.
         //TODO 2.1.1.f We then return the first result that we get from Cosmos.
         return(query.AsEnumerable().FirstOrDefault());
     }
     catch
     {
         //TODO 2.1.1.g If it fails for whatever reason, we will return a default of the Account type.
         return(default(Account));
     }
 }