Ejemplo n.º 1
0
        public virtual ApiIncludedColumnTestClientRequestModel MapClientResponseToRequest(
            ApiIncludedColumnTestClientResponseModel response)
        {
            var request = new ApiIncludedColumnTestClientRequestModel();

            request.SetProperties(
                response.Name,
                response.Name2);
            return(request);
        }
Ejemplo n.º 2
0
        public virtual ApiIncludedColumnTestClientResponseModel MapClientRequestToResponse(
            int id,
            ApiIncludedColumnTestClientRequestModel request)
        {
            var response = new ApiIncludedColumnTestClientResponseModel();

            response.SetProperties(id,
                                   request.Name,
                                   request.Name2);
            return(response);
        }
Ejemplo n.º 3
0
        public virtual async Task <UpdateResponse <ApiIncludedColumnTestClientResponseModel> > IncludedColumnTestUpdateAsync(int id, ApiIncludedColumnTestClientRequestModel item, CancellationToken cancellationToken = default(CancellationToken))
        {
            HttpResponseMessage httpResponse = await this.Client.PutAsJsonAsync($"api/IncludedColumnTests/{id}", item, cancellationToken).ConfigureAwait(false);

            this.HandleResponseCode(httpResponse);
            return(JsonConvert.DeserializeObject <UpdateResponse <ApiIncludedColumnTestClientResponseModel> >(httpResponse.Content.ContentToString()));
        }