public static async Task <OrganizationUnitDto> GetByIdAsync(this IOrganizationUnits operations, long key, string expand = default(string), string select = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetByIdWithHttpMessagesAsync(key, expand, select, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
public static async Task <OrganizationUnitDto> PutByIdAsync(this IOrganizationUnits operations, int id, OrganizationUnitDto organizationUnitDto, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.PutByIdWithHttpMessagesAsync(id, organizationUnitDto, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
public static async Task <OrganizationUnitDto> PutByIdAsync(this IOrganizationUnits operations, int key, OrganizationUnitDto body = default(OrganizationUnitDto), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.PutByIdWithHttpMessagesAsync(key, body, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
public static async Task <ODataValueIEnumerableOrganizationUnitDto> GetAsync(this IOrganizationUnits operations, string expand = default(string), string filter = default(string), string select = default(string), string orderby = default(string), int?top = default(int?), int?skip = default(int?), bool?count = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(expand, filter, select, orderby, top, skip, count, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
public static OrganizationUnitDto PutById(this IOrganizationUnits operations, int key, OrganizationUnitDto body = default(OrganizationUnitDto)) { return(operations.PutByIdAsync(key, body).GetAwaiter().GetResult()); }
public static OrganizationUnitDto GetById(this IOrganizationUnits operations, long key, string expand = default(string), string select = default(string)) { return(operations.GetByIdAsync(key, expand, select).GetAwaiter().GetResult()); }
public static OrganizationUnitDto Post(this IOrganizationUnits operations, OrganizationUnitDto organizationUnitDto) { return(operations.PostAsync(organizationUnitDto).GetAwaiter().GetResult()); }
public static async Task <ODataValueOfIEnumerableOfUserDto> GetUsersForUnitByKeyAsync(this IOrganizationUnits operations, long key, string expand = default(string), string filter = default(string), string select = default(string), string orderby = default(string), int?top = default(int?), int?skip = default(int?), bool?count = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetUsersForUnitByKeyWithHttpMessagesAsync(key, expand, filter, select, orderby, top, skip, count, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
public static async Task SetUsersByIdAsync(this IOrganizationUnits operations, int key, OrganizationUnitsSetUsersParameters body = default(OrganizationUnitsSetUsersParameters), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.SetUsersByIdWithHttpMessagesAsync(key, body, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
public static async Task DeleteByIdAsync(this IOrganizationUnits operations, long key, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DeleteByIdWithHttpMessagesAsync(key, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
public static ODataResponseListInt64 GetUserIdsForUnitByKey(this IOrganizationUnits operations, long key) { return(operations.GetUserIdsForUnitByKeyAsync(key).GetAwaiter().GetResult()); }
public static ODataResponseListUserDto GetUsersForUnitByKey(this IOrganizationUnits operations, long key, string expand = default(string), string filter = default(string), string select = default(string), string orderby = default(string), int?top = default(int?), int?skip = default(int?), bool?count = default(bool?)) { return(operations.GetUsersForUnitByKeyAsync(key, expand, filter, select, orderby, top, skip, count).GetAwaiter().GetResult()); }
public static async Task DeleteByIdAsync(this IOrganizationUnits operations, long id, string ifMatch = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { (await operations.DeleteByIdWithHttpMessagesAsync(id, ifMatch, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
public static void DeleteById(this IOrganizationUnits operations, long id, string ifMatch = default(string)) { operations.DeleteByIdAsync(id, ifMatch).GetAwaiter().GetResult(); }
public static OrganizationUnitDto PutById(this IOrganizationUnits operations, int id, OrganizationUnitDto organizationUnitDto) { return(operations.PutByIdAsync(id, organizationUnitDto).GetAwaiter().GetResult()); }
public static void DeleteById(this IOrganizationUnits operations, long key) { operations.DeleteByIdAsync(key).GetAwaiter().GetResult(); }
public static async Task <ODataResponseListInt64> GetUserIdsForUnitByKeyAsync(this IOrganizationUnits operations, long key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.GetUserIdsForUnitByKeyWithHttpMessagesAsync(key, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
public static void SetUsersById(this IOrganizationUnits operations, int key, OrganizationUnitsSetUsersParameters body = default(OrganizationUnitsSetUsersParameters)) { operations.SetUsersByIdAsync(key, body).GetAwaiter().GetResult(); }
public static void SetUsersById(this IOrganizationUnits operations, int id, SetUsersParameters setUsersParameters) { operations.SetUsersByIdAsync(id, setUsersParameters).GetAwaiter().GetResult(); }
public static ODataValueOfIEnumerableOfInt64 GetUserIdsForUnitByKey(this IOrganizationUnits operations, long key, string expand = default(string), string filter = default(string), string select = default(string), string orderby = default(string), bool?count = default(bool?)) { return(operations.GetUserIdsForUnitByKeyAsync(key, expand, filter, select, orderby, count).GetAwaiter().GetResult()); }
public static async Task SetUsersByIdAsync(this IOrganizationUnits operations, int id, SetUsersParameters setUsersParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { (await operations.SetUsersByIdWithHttpMessagesAsync(id, setUsersParameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
public static ODataValueOfIEnumerableOfOrganizationUnitDto Get(this IOrganizationUnits operations, string expand = default(string), string filter = default(string), string select = default(string), string orderby = default(string), int?top = default(int?), int?skip = default(int?), bool?count = default(bool?)) { return(operations.GetAsync(expand, filter, select, orderby, top, skip, count).GetAwaiter().GetResult()); }
public static OrganizationUnitDto Post(this IOrganizationUnits operations, OrganizationUnitDto body = default(OrganizationUnitDto)) { return(operations.PostAsync(body).GetAwaiter().GetResult()); }