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