예제 #1
0
 /// <summary>
 /// Constructor for building a new simple object with the POCO class
 /// </summary>
 public FundingSourceSimple(FundingSource fundingSource)
 {
     FundingSourceID      = fundingSource.FundingSourceID;
     OrganizationID       = fundingSource.OrganizationID;
     OrganizationName     = fundingSource.Organization.GetOrganizationShortNameIfAvailable();
     OrganizationFullName = fundingSource.Organization.GetOrganizationFullNameIfAvailable();
     FundingSourceName    = fundingSource.FundingSourceName;
     IsActive             = fundingSource.IsActive;
     DisplayName          = fundingSource.GetDisplayName();
 }
예제 #2
0
 public static HtmlString GetDisplayNameAsUrl(this FundingSource fundingSource) => UrlTemplate.MakeHrefString(fundingSource.GetDetailUrl(), fundingSource.GetDisplayName());