public async Task MakeLive() { var cmd = new SurveyDefinitionMakeLiveCmd(survey.SurveyId); var result = await SurveyClient.MakeLive(cmd); if (result.Result == CommandSubmitExecutionResult.OK) { survey = result.EntityQry; CanEdit = false; StateHasChanged(); } }
public async Task <CommandSubmitResult <SurveyEditDTO> > MakeLive(SurveyDefinitionMakeLiveCmd cmd) { string url = $"{_baseUrl}makelive"; return(await PostCmd(cmd, url)); }