public async Task <PersonDetail> GetPersonDetail(string token, int personId) { var client = new WebApiClient(token); return(await client.GetAsync <PersonDetail>(_appSettings.PersonUrl, "api/person", personId.ToString())); }
public async Task <PersonDetail[]> GetPersonDetails(string token) { var client = new WebApiClient(token); return(await client.GetAsync <PersonDetail[]>(_appSettings.PersonUrl, "api/person")); }
public async Task <AuthenticateResponse> Authenticate(AuthenticateRequest authenticateRequest) { var client = new WebApiClient(); return(await client.Post <AuthenticateRequest, AuthenticateResponse>(_appSettings.AuthenticationUrl, "api/authentication/authenticate", authenticateRequest)); }