Ejemplo n.º 1
0
        public static void AssignDefaultRoleForUser(string userName)
        {
            var dal = new UsersDal();

            if (!dal.IsUserExists(userName))
            {
                //add new user to table
                //and assign User Role to him
                dal.InsertUserWithDefaultRole(userName);
            }
        }