Example #1
0
        public RolesDTO GetRoles()
        {
            RolesDTO rolesList = UserDBContext.GetRoles();


            if (rolesList.Roles.Count() <= 0)
            {
                throw new NoRolesFoundException();
            }
            else
            {
                return(rolesList);
            }
        }