Exemplo n.º 1
0
        public async Task <bool> UpdateMobileAndCustomAppAsync(string id, MobileCustomAppConfig body = null, CancellationToken cancellationToken = default)
        {
            var response = await GetMobileAndCustomAppAppUrl()
                           .AppendPathSegment(id)
                           .PutJsonAsync(body, cancellationToken)
                           .ConfigureAwait(false);

            return(response.IsSuccessStatusCode);
        }
Exemplo n.º 2
0
        public async Task <EntityShortRepresentation> CreateMobileAndCustomAppAsync(MobileCustomAppConfig body = null, CancellationToken cancellationToken = default)
        {
            var result = await GetMobileAndCustomAppAppUrl()
                         .PostJsonAsync(body, cancellationToken)
                         .ReceiveJsonWithErrorChecking <EntityShortRepresentation>()
                         .ConfigureAwait(false);

            return(result);
        }