Exemple #1
0
        public async Task <IBackofficeUserRole> GetAsync(string id)
        {
            string partitionKey = BackOfficeUserRoleEntity.GeneratePartitionKey();
            string rowKey       = BackOfficeUserRoleEntity.GenegrateRowKey(id);

            return(await _tableStorage.GetDataAsync(partitionKey, rowKey));
        }
Exemple #2
0
 public async Task SaveAsync(IBackofficeUserRole data)
 {
     BackOfficeUserRoleEntity newEntity = BackOfficeUserRoleEntity.Create(data);
     await _tableStorage.InsertOrReplaceAsync(newEntity);
 }
Exemple #3
0
        public async Task <IEnumerable <IBackofficeUserRole> > GetAllRolesAsync()
        {
            string partitionKey = BackOfficeUserRoleEntity.GeneratePartitionKey();

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