Example #1
0
        public void AddUserType(UserType ut)
        {
            UsersRepository ur = new UsersRepository();

            //checking if the isbn already exists
            if (ur.GetUserType(ut.Type) == null)
            {
                ur.AddUserType(ut);
            }
            else
            {
                throw new Exception("Usertype already exists");
            }
        }