public int ResetSecret(IdentityClient client)
        {
            client.SetSecret();

            return
                (Update(client));
        }
 public int Update(IdentityClient client)
 {
     return
         (_database.Update("Client", "Id", client));
 }
 public int Delete(IdentityClient client)
 {
     return(Delete(client.Id));
 }
 public int Insert(IdentityClient client)
 {
     return(_database.Insert("Client", "", client) != null ? 1 : 0);
 }