private async void gettWeeklyAffairsList()
        {
            progress.Show();

            try
            {
                WeeklyCurrentAffairsAPI_Response response = await weeklycurrentaffairapi.GetWeeklyCurrentAffairsList();

                weeklyList = response.res_data;



                //  Toast.MakeText(this.Activity, "-->" + myFinalList[0].name,ToastLength.Short).Show();

                for (int i = 0; i < weeklyList.Count; i++)
                {
                    WeeklyCurrentsAffairs_List.Add(weeklyList[i].content_id);

                    WeeklyCurrentsAffairs_List.Add(weeklyList[i].content_title);

                    WeeklyCurrentsAffairs_List.Add(weeklyList[i].content_date);
                    WeeklyCurrentsAffairs_List.Add(weeklyList[i].content_file);

                    Week_Id    = weeklyList[i].content_id;
                    Week_Title = weeklyList[i].content_title;
                    Week_Date  = weeklyList[i].content_date;
                    Week_File  = weeklyList[i].content_file;

                    dba.insertWeeklyCurrentAffairData(Week_Id, Week_Title, Week_Date, Week_File);
                }

                ISharedPreferencesEditor edit = pref.Edit();
                edit.PutString("FinalWeeklyAffairs", "true");

                edit.Apply();


                WeeklyCurrentAffairAdapter W_Adapter = new WeeklyCurrentAffairAdapter(Activity, weeklyList, MyListWeeklyCurrentAffairs);
                mLayoutManager = new LinearLayoutManager(this.Activity);
                MyListWeeklyCurrentAffairs.SetLayoutManager(mLayoutManager);


                WeeklyCurrentAffairAdapter mAdapter = new WeeklyCurrentAffairAdapter(Activity, weeklyList, MyListWeeklyCurrentAffairs);
                mAdapter.ItemClick += MAdapter_ItemClick;
                MyListWeeklyCurrentAffairs.SetAdapter(mAdapter);
                progress.Dismiss();
            }
            catch (Exception e)
            {
                progress.Dismiss();
            }
        }
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            View v = inflater.Inflate(Resource.Layout.WeeklyCurrentAffair_Layout, container, false);

            MyListWeeklyCurrentAffairs = v.FindViewById <RecyclerView>(Resource.Id.weeklyaffairs);

            Button btnrefresh = v.FindViewById <Button>(Resource.Id.refresh);

            btnrefresh.Click += delegate
            {
                weeklyList = new List <Weekly_Current_Affair_Model>();
                gettWeeklyAffairsList();
            };

            //==================================Fetch api==========================//
            JsonConvert.DefaultSettings = () => new JsonSerializerSettings()
            {
                ContractResolver = new CamelCasePropertyNamesContractResolver(),
                Converters       = { new StringEnumConverter() }
            };
            // String apiurl = string.Format("http://mg.mahendras.org);
            weeklycurrentaffairapi = RestService.For <WeeklyCurrentAffair_API>("http://mg.mahendras.org");
            // getBookMarkList();
            //=====================================================================//

            if (WeeklyCurrentAffairDetails.Equals("false"))
            {
                gettWeeklyAffairsList();
            }
            else
            {
                weeklyList = dba.Get_WeeklyCurrentAffairData();
                //WeeklyCurrentAffairAdapter W_Adapter = new WeeklyCurrentAffairAdapter(Activity, weeklyList, MyListWeeklyCurrentAffairs);


                mLayoutManager = new LinearLayoutManager(this.Activity);
                MyListWeeklyCurrentAffairs.SetLayoutManager(mLayoutManager);
                WeeklyCurrentAffairAdapter mAdapter = new WeeklyCurrentAffairAdapter(Activity, weeklyList, MyListWeeklyCurrentAffairs);
                mAdapter.ItemClick += MAdapter_ItemClick;
                MyListWeeklyCurrentAffairs.SetAdapter(mAdapter);
            }

            return(v);
        }