Exemple #1
0
        public int AddUser(T_User user)
        {
            var userinfo = userData.GetUserByUserName(user.UserName);

            if (userinfo != null)
            {
                return(0);
            }
            int userId = userData.Add(user);

            return(userId);
        }
Exemple #2
0
 /// <summary>
 /// Saves modified user data into the ASP Net Identity database
 /// </summary>
 public void Add(User user)
 {
     UserDataProvider.Add(user);
 }