public async Task FinishSurvey(SurveyModel surveyModel, string authenticationToken) { try { FeedService feedService = new FeedService(); var response = await feedService.FinishSurvey(surveyModel, authenticationToken); if (!response.IsSuccessStatusCode) { if (response.StatusCode == System.Net.HttpStatusCode.Unauthorized) { throw new Exception("Unauthorized"); } else { throw new Exception(response.StatusCode.ToString() + " - " + response.ReasonPhrase); } } } catch (Exception ex) { throw new Exception(ex.Message); } }