public void AddTimestampCheck(ApiTimestampCheckClientResponseModel item) { if (!this.TimestampChecks.Any(x => x.Id == item.Id)) { this.TimestampChecks.Add(item); } }
public virtual ApiTimestampCheckClientRequestModel MapClientResponseToRequest( ApiTimestampCheckClientResponseModel response) { var request = new ApiTimestampCheckClientRequestModel(); request.SetProperties( response.Name, response.Timestamp); return(request); }
public virtual ApiTimestampCheckClientResponseModel MapClientRequestToResponse( int id, ApiTimestampCheckClientRequestModel request) { var response = new ApiTimestampCheckClientResponseModel(); response.SetProperties(id, request.Name, request.Timestamp); return(response); }