26 lines
849 B
C#
26 lines
849 B
C#
using System.Collections.Generic;
|
|
|
|
namespace Kreta.BusinessLogic.HelperClasses.OsztalyCsoportbaSorolas
|
|
{
|
|
public class NebulokList : Dictionary<int, TanuloListItem>
|
|
{
|
|
public List<OsztalybaSorolasDDLItem> ConvertToDDLItemList()
|
|
{
|
|
var result = new List<OsztalybaSorolasDDLItem>();
|
|
foreach (var item in this)
|
|
{
|
|
result.Add(new OsztalybaSorolasDDLItem()
|
|
{
|
|
Value = item.Key.ToString(),
|
|
Text = item.Value.Nev,
|
|
|
|
BesorolasDatum = item.Value.BesorolasDatum,
|
|
KisorolasDatum = item.Value.KisorolasDatum,
|
|
Aktiv = item.Value.Aktiv,
|
|
SzulDatum = item.Value.SzuletesiDatum
|
|
});
|
|
}
|
|
return result;
|
|
}
|
|
}
|
|
}
|