public void AddCertificate(ApiCertificateResponseModel item) { if (!this.Certificates.Any(x => x.Id == item.Id)) { this.Certificates.Add(item); } }
public virtual ApiCertificateRequestModel MapResponseToRequest( ApiCertificateResponseModel response) { var request = new ApiCertificateRequestModel(); request.SetProperties( response.Archived, response.Created, response.DataVersion, response.EnvironmentIds, response.JSON, response.Name, response.NotAfter, response.Subject, response.TenantIds, response.TenantTags, response.Thumbprint); return(request); }