private void SelectCheckSpecificationAction_Execute(object sender, SingleChoiceActionExecuteEventArgs e) { ClearCheckSpecifications(); HideAllCheckSpecifications(); var selectedData = e.SelectedChoiceActionItem.Data; SelectedSpecification = (CheckBySpecification)selectedData; var selectedCheckSpecification = selectedData.ToString().RemoveUnderline(); ChangeVisibilityOfSelectedCheckSpecification($"{selectedCheckSpecification}", true); }
public async Task <object> CheckSubject(object selectedSpecificationData, CheckBySpecification checkBySpecification, DateTime date) { apiUrlAssigner = CheckApiUrlAssigner.GetInstance(); var url = apiUrlAssigner.GetActionUrl(selectedSpecificationData, (int)checkBySpecification); var queryParams = new Dictionary <string, string> { { "date", date.ToString("yyyy-MM-dd") } }; var stringResponse = await customHttpClient.GetStringAsync(url, queryParams); object deserializedResponse = JsonConvert.DeserializeObject <EntityCheckResponse>(stringResponse); deserializedResponse = ReturnExceptionIfResultIsNull(stringResponse, deserializedResponse); return(deserializedResponse); }