init
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user