public async Task <IApplication> GetByIdAsync(string id)
        {
            var partitionKey = ApplicationEntity.GeneratePartitionKey();
            var rowKey       = ApplicationEntity.GenerateRowKey(id);

            return(await _applicationTablestorage.GetDataAsync(partitionKey, rowKey));
        }
 public async Task EditApplicationAsync(string id, IApplication application)
 {
     await
     _applicationTablestorage.ReplaceAsync(ApplicationEntity.GeneratePartitionKey(),
                                           ApplicationEntity.GenerateRowKey(id),
                                           applicationEntity =>
     {
         applicationEntity.DisplayName = application.DisplayName;
         applicationEntity.RedirectUri = application.RedirectUri;
         return(applicationEntity);
     });
 }
 public async Task DeleteAsync(string id)
 {
     var partitionKey = ApplicationEntity.GeneratePartitionKey();
     var rowKey       = ApplicationEntity.GenerateRowKey(id);
     await _applicationTablestorage.DeleteAsync(partitionKey, rowKey);
 }
        public async Task <IEnumerable <IApplication> > GetApplicationsAsync()
        {
            var partitionKey = ApplicationEntity.GeneratePartitionKey();

            return(await _applicationTablestorage.GetDataAsync(partitionKey));
        }