using Marco.Pms.Model.Entitlements;
using Marco.Pms.Model.ViewModels.Master;

namespace Marco.Pms.Model.Mapper
{
    public static class FeatureMapper
    {
        public static FeaturePermissionVM ToFeaturePermissionVMFromFeaturePermission(this FeaturePermission model)
        {
            return new FeaturePermissionVM
            {
                Id = model.Id,
                FeatureId = model.FeatureId,
                Description = model.Description,
                IsEnabled = model.IsEnabled,
                Name = model.Name,
            };
        }
        //public static EmployeeRole ToEmployeeRoleFromCreateDto(this CreateRoleDto model, int TenantId)
        //{
        //    return new EmployeeRole
        //    {
        //        Id =new Guid(),
        //        Role = model.Role,
        //        Description = model.Description,
        //        Features = model.Features,               
        //        TenantId = TenantId,
        //    };
        //}

        //public static EmployeeRole ToEmployeeRoleFromUpdateDto(this UpdateRoleDto model, int TenantId)
        //{
        //    return new EmployeeRole
        //    {
        //        Id = model.Id,
        //        Role = model.Role,
        //        Description = model.Description,
        //        Features = model.Features,
        //        TenantId = TenantId,
        //    };
        //}
    }
}
