﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Training.CSharpWorkshop
{
    public class User
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public RoleEnum Role { get; set; }
    }

    namespace Training.CSharpWorkshop
    {
        public class User
        {
            public int Id { get; set; }
            public string Name { get; set; }
            public RoleEnum Role { get; set; }

            public virtual bool CanInsert()
            {
                return Role == RoleEnum.Admin;
            }

            public bool CanDelete()
            {
                return Role == RoleEnum.Admin;
            }

            public bool CanFind()
            {
                return Role != RoleEnum.None;
            }
        }
    }
}
﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Training.CSharpWorkshop
{
    public class User
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public RoleEnum Role { get; set; }
    }
}
Revert "Enum - Add methods to verify against the user's role if the user can add, delete, or find users"
Revert "Enum - Add methods to verify against the user's role if the user can add, delete, or find users"

This reverts commit 471ff585580ff97eb462ceef5e3325fc360d56f3.
