コード例 #1
0
        public async Task <UserJoinInRes> AddUser(UserJoinInReq req)
        {
            var res = new UserJoinInRes();

            Console.WriteLine($"AddUser Request. Id : {req.UserId}, Pw : {req.EncryptedPw}");

            var result = await MongoDBManager.JoinUser(req.UserId, req.EncryptedPw);

            res.Result = (int)result;

            return(res);
        }
コード例 #2
0
        public async Task <UserValidationRes> GetUserValidation(UserValidationReq req)
        {
            var res = new UserValidationRes();

            Console.WriteLine($"UserValidation Request. Id : {req.UserId}, Pw : {req.EncryptedPw}");

            var isUserExisted = await MongoDBManager.IsUserExist(req.UserId, req.EncryptedPw);

            res.Result = (int)isUserExisted;

            return(res);
        }