This commit is contained in:
2022-02-22 18:12:37 +00:00
parent 4a394d3ff7
commit 1ac4c7f51a
34 changed files with 949 additions and 671 deletions
@@ -392,6 +392,21 @@ namespace Saxonite.Net.Core.Web.Base.Models
}
}
/// <summary>
/// List of Organisation Categories for Admin dropdown.
/// <para>Includes complete set of categories.</para>
/// </summary>
public IEnumerable<SelectListItem> AdminOrganisationCategoriesForSelect
{
get
{
List<SelectListItem> values = new List<SelectListItem>();
foreach (TypeCodeDesc organisationCategory in OrganisationCategoryCodes)
values.Add(new SelectListItem(Localiser.GetOrganisationCategoryCaption((Sax.OrganisationCategory)organisationCategory.Type), organisationCategory.Code));
return values;
}
}
//-------------------------------------------------------------------
// Messages.
//-------------------------------------------------------------------