Ejemplo n.º 1
0
        public async Task <RegisterResult> Register(RegisterModel registerModel)
        {
            var unKownErrors = new RegisterResult()
            {
                Successful = false, Errors = new List <string> {
                    "注册失败,未知错误"
                }
            };
            var result = await _httpClient.PostWithJsonResultAsync <RegisterResult>("api/Account/Regist", registerModel.BuildHttpContent());

            return(result?.Data ?? unKownErrors);
        }