public async Task <IBackofficeUserRole> GetAsync(string id) { string partitionKey = BackOfficeUserRoleEntity.GeneratePartitionKey(); string rowKey = BackOfficeUserRoleEntity.GenegrateRowKey(id); return(await _tableStorage.GetDataAsync(partitionKey, rowKey)); }
public async Task SaveAsync(IBackofficeUserRole data) { BackOfficeUserRoleEntity newEntity = BackOfficeUserRoleEntity.Create(data); await _tableStorage.InsertOrReplaceAsync(newEntity); }
public async Task <IEnumerable <IBackofficeUserRole> > GetAllRolesAsync() { string partitionKey = BackOfficeUserRoleEntity.GeneratePartitionKey(); return(await _tableStorage.GetDataAsync(partitionKey)); }