Exemple #1
0
        public UserContract CreateUser(UserContract user)
        {
            AuthServiceClient client = new AuthServiceClient();
            var createdUser          = client.CreateUser(user);

            client.Close();
            if (createdUser != null)
            {
                CreateCookie(createdUser.UserName, true);
                return(createdUser);
            }
            return(null);
        }