/// <summary> /// Get Browser Restriction by Id /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> GetBrowserRestrictionByIdAsync(this IFeatureManagementAppTierAPI operations, System.Guid id, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetBrowserRestrictionByIdWithHttpMessagesAsync(id, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
public async Task <IActionResult> Get(Guid id) { if (id == Guid.Empty) { return(BadRequest("Invalid Id")); } using IFeatureManagementAppTierAPI api = CreateFeatureManagementApi(); HttpOperationResponse <object> result = await api.GetBrowserRestrictionByIdWithHttpMessagesAsync(id); return(CreateResponse <BrowserRestriction>(result)); }