PIAPS_CW/Contracts/Converters/RoleConverter.cs

25 lines
496 B
C#
Raw Permalink Normal View History

2024-06-04 23:43:15 +04:00
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,
};
}
}