async Task <bool> LoadForAddResponse(Guid surveyId) { var cmd = new SurveyResponseCreateCmd(surveyId); var response = await SurveyResponseClient.AddResponse(cmd); if (response.Result == CommandSubmitExecutionResult.OK) { SurveyResponse = response.EntityQry; Load(); } Console.WriteLine($" Result - {response.Result}"); return(true); }
public async Task <CommandSubmitResult <SurveyResponseDTO> > AddResponse(SurveyResponseCreateCmd cmd) { string url = $"{_baseUrl}addsurveyresponse"; return(await PostCmd(cmd, url)); }