init
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using Kreta.BusinessLogic.Classes.MobileApi.Naplo.V2.Co.Enum;
|
||||
using Kreta.Naplo.Domain.V2.Model.CustomEnum;
|
||||
|
||||
namespace Kreta.Naplo.Domain.V2.Model.Converter
|
||||
{
|
||||
/// <summary>
|
||||
/// This registers the converter functions called CoToModel and ModelToCo, but it's not mandatory to do.
|
||||
/// </summary>
|
||||
public static class EnumConverter
|
||||
{
|
||||
public static NaploEnumList CoToModel<T>(NaploEnumListCo<T> co) where T : struct, IConvertible => NaploEnumList.Create(co);
|
||||
public static NaploEnumListItem CoToModel(NaploEnumListItemCo co) => co;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user