18 lines
720 B
C#
18 lines
720 B
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using Kreta.Ellenorzo.Domain.VN.Felhasznalo.Gondviselo;
|
|
using Kreta.Ellenorzo.Domain.VN.Felhasznalo.Tanulo;
|
|
using Kreta.Ellenorzo.Domain.VN.Utility;
|
|
|
|
namespace Kreta.Ellenorzo.Domain.VN.Converter
|
|
{
|
|
/// <summary>
|
|
/// This registers the converter functions called ModelToModel, but it's not mandatory to do.
|
|
/// </summary>
|
|
public static class ResponseModelConverter
|
|
{
|
|
public static HashSet<GondviseloGetResponse> ModelToModel(IEnumerable<GondviseloResponse> model) => model.ConvertAll(ModelToModel).ToHashSet();
|
|
|
|
private static GondviseloGetResponse ModelToModel(GondviseloResponse model) => (GondviseloGetResponse)model;
|
|
}
|
|
}
|