Example #1
0
        public async Task <IdentityResult> RegisterUser(UserModel userModel)
        {
            SocialTapUser user = new SocialTapUser
            {
                UserName = userModel.UserName
            };

            var result = await _userManager.CreateAsync(user, userModel.Password);

            return(result);
        }
Example #2
0
        public async Task <SocialTapUser> FindUser(string userName, string password)
        {
            SocialTapUser user = await _userManager.FindAsync(userName, password);

            return(user);
        }