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

            return(await _tableStorage.GetDataAsync(partitionKey, rowKey));
        }
Ejemplo n.º 2
0
        public async Task <IEnumerable <IBackofficeUserRole> > GetAllRolesAsync()
        {
            string partitionKey = BackOfficeUserRoleEntity.GeneratePartitionKey();

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