public void AddRowVersionCheck(ApiRowVersionCheckClientResponseModel item) { if (!this.RowVersionChecks.Any(x => x.Id == item.Id)) { this.RowVersionChecks.Add(item); } }
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); }