public virtual ApiRowVersionCheckClientRequestModel MapClientResponseToRequest( ApiRowVersionCheckClientResponseModel response) { var request = new ApiRowVersionCheckClientRequestModel(); request.SetProperties( response.Name, response.RowVersion); return(request); }
public virtual ApiRowVersionCheckClientResponseModel MapClientRequestToResponse( int id, ApiRowVersionCheckClientRequestModel request) { var response = new ApiRowVersionCheckClientResponseModel(); response.SetProperties(id, request.Name, request.RowVersion); return(response); }
public virtual async Task <UpdateResponse <ApiRowVersionCheckClientResponseModel> > RowVersionCheckUpdateAsync(int id, ApiRowVersionCheckClientRequestModel item, CancellationToken cancellationToken = default(CancellationToken)) { HttpResponseMessage httpResponse = await this.Client.PutAsJsonAsync($"api/RowVersionChecks/{id}", item, cancellationToken).ConfigureAwait(false); this.HandleResponseCode(httpResponse); return(JsonConvert.DeserializeObject <UpdateResponse <ApiRowVersionCheckClientResponseModel> >(httpResponse.Content.ContentToString())); }