added active and historical end points in response service

This commit is contained in:
uppuv
2023-10-17 11:22:49 -04:00
parent 027097d12d
commit bbe8008fc2
6 changed files with 28 additions and 26 deletions

View File

@ -10,10 +10,12 @@ namespace DamageAssesment.Api.Responses.Services
{
}
public async Task<List<Survey>> getSurveysAsync(string token)
public async Task<List<Survey>> getSurveysAsync(string language, string token)
{
try
{
if (!string.IsNullOrEmpty(language))
url = url + "/" + language;
var responseJsonString = await httpUtil.SendAsync(HttpMethod.Get, url, null, token);
var surveys = JsonConvert.DeserializeObject<List<Survey>>(responseJsonString);