Пример #1
0
        public static bool SetUser(adm.User user)
        {
            var checkuser = GetUserByUserName(user.Username);

            if (checkuser != null && checkuser.Username == user.Username)
            {
                return(false);
            }
            else
            {
                _dbb.User.Add(user);
                return(_dbb.SaveChanges() > 0);
            }
        }
Пример #2
0
 internal static bool SetUser(ald.User user)
 {
     return(UserHelper.SetUser(user));
 }