示例#1
0
 public void AddRowVersionCheck(ApiRowVersionCheckClientResponseModel item)
 {
     if (!this.RowVersionChecks.Any(x => x.Id == item.Id))
     {
         this.RowVersionChecks.Add(item);
     }
 }
示例#2
0
        public virtual ApiRowVersionCheckClientRequestModel MapClientResponseToRequest(
            ApiRowVersionCheckClientResponseModel response)
        {
            var request = new ApiRowVersionCheckClientRequestModel();

            request.SetProperties(
                response.Name,
                response.RowVersion);
            return(request);
        }
示例#3
0
        public virtual ApiRowVersionCheckClientResponseModel MapClientRequestToResponse(
            int id,
            ApiRowVersionCheckClientRequestModel request)
        {
            var response = new ApiRowVersionCheckClientResponseModel();

            response.SetProperties(id,
                                   request.Name,
                                   request.RowVersion);
            return(response);
        }