示例#1
0
        public async Task <Result <User> > ValidateUserPassword(string userName, string password)
        {
            var webApiClient = new WebApiClient <User>();

            return(await webApiClient.AuthenticateAsync(userName, password));
        }
示例#2
0
        public async Task <Result <PersonDetail> > GetPerson(int personId)
        {
            var webApiClient = new WebApiClient <PersonDetail>();

            return(await webApiClient.GetAsync("person", personId.ToString()));
        }