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,
		};
	}
}