private async Task <List <Questions> > LoadQuestions()
        {
            try
            {
                HttpClient client    = Client.Get();
                URLS       urls      = new URLS();
                var        questions = await client.GetAsync(urls.QuestionsURL).ConfigureAwait(false);

                List <Questions> questionsRes = null;
                if (questions.IsSuccessStatusCode)
                {
                    questionsRes = JsonConvert.DeserializeObject <List <Questions> >(questions.Content.ReadAsStringAsync().Result);
                }

                //if (questionsRes != null)
                //{
                //    foreach (var item in questionsRes)
                //    {
                //        var options = await client.GetAsync(string.Format(urls.OptionsURL, item.Id));
                //        item.Options = new List<Options>();
                //        List<Options> optionsRes = null;
                //        if (options.IsSuccessStatusCode)
                //        {
                //            optionsRes = JsonConvert.DeserializeObject<List<Options>>(options.Content.ReadAsStringAsync().Result);
                //        }
                //    }
                //}

                return(questionsRes);
            }
            catch (Exception)
            {
                return(null);
            }
        }
        private async Task <bool> SubmitAns(List <SubmittedAnswer> submittedAnswers)
        {
            HttpClient client = Client.Get();
            URLS       urls   = new URLS();

            var res = await client.PostAsJsonAsync <List <SubmittedAnswer> >(urls.SubmitURL, submittedAnswers).ConfigureAwait(false);

            bool a = JsonConvert.DeserializeObject <bool>(res.Content.ReadAsStringAsync().Result);

            return(a);
        }