public void AddVersionInfo(ApiVersionInfoResponseModel item) { if (!this.VersionInfoes.Any(x => x.Version == item.Version)) { this.VersionInfoes.Add(item); } }
public virtual ApiVersionInfoRequestModel MapResponseToRequest( ApiVersionInfoResponseModel response) { var request = new ApiVersionInfoRequestModel(); request.SetProperties( response.AppliedOn, response.Description); return(request); }
public virtual ApiVersionInfoResponseModel MapRequestToResponse( long version, ApiVersionInfoRequestModel request) { var response = new ApiVersionInfoResponseModel(); response.SetProperties(version, request.AppliedOn, request.Description); return(response); }