public async Task SetPermissions(IEnumerable <CNDSUpdateAssignedPermissionDTO> permissions) { Guid networkID = await CNDSEntityUpdater.GetNetworkID(DataContext); try { using (var cnds = new CNDSEntityUpdater(networkID)) { await CNDSEntityUpdater.SetPermissions(permissions); } } catch (Exception ex) { Logger.Error(ex.Message, ex); throw; } }