private void OpenCreateQuestionnaireWindow() { var currentWindow = Application.Current.Windows.OfType <Window>().SingleOrDefault(x => x.IsActive); var temp = new CreateQuestionnaire(); temp.Show(); currentWindow.Close(); }
public IApiResult Create(CreateQuestionnaire operation) { var result = operation.ExecuteAsync().Result; if (result is ValidationsOutput) { return(new ApiResult <List <ValidationItem> >() { Data = ((ValidationsOutput)result).Errors }); } else { return(new ApiResult <object>() { Status = ApiResult <object> .ApiStatus.Success }); } }