PIAPS_CW/Contracts/Converters/RoleConverter.cs
2024-06-04 23:43:15 +04:00

25 lines
496 B
C#

using Contracts.BindingModels;
using Contracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Contracts.Converters
{
public static class RoleConverter
{
public static RoleViewModel ToView(RoleBindingModel model) => new()
{
Id = model.Id,
Name = model.Name,
};
public static RoleBindingModel ToBinding(RoleViewModel model) => new()
{
Id = model.Id,
Name = model.Name,
};
}
}