This commit is contained in:
2022-07-16 13:30:57 +01:00
parent 5fc6389af2
commit dc431e1634
79 changed files with 3570 additions and 310 deletions
@@ -334,6 +334,15 @@ namespace Saxonite.Net.Standard.Base.Bus
return values.Find(item => item.Id.Equals(organisationId));
}
//-------------------------------------------------------------------
/// <summary>
/// Get the name of the first Organisation in list with the specified Id.
/// </summary>
public static String GetOrganisationName(this List<SaxOrganisation> values, SysId organisationId)
{
return values.Find(item => item.Id.Equals(organisationId))?.Name ?? "";
}
//-------------------------------------------------------------------
}