forked from MDCPS/DamageAssessment_Backend
		
	added active and historical end points in response service
This commit is contained in:
		| @ -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); | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user