/// <summary>
        /// Method to fill pharmacy details if offline
        /// </summary>
        private void FillPharmacyDetailsOffline()
        {
            if (App.IsFromRejected)
            {
                INavigationService navigationService = this.GetService<INavigationService>();
                navigationService.Navigate(PageURL.navigateToYourDetailsUpdateURL);
            }
            
                AppBarPrimaryColour = App.ObjBrandingResponse.payload.branding_data.appearance.primary_colour;
                PrimaryColour = Utilities.GetColorFromHexa(App.ObjBrandingResponse.payload.branding_data.appearance.primary_colour);
                SecondaryColour = Utilities.GetColorFromHexa(App.ObjBrandingResponse.payload.branding_data.appearance.secondary_colour);
                FontColor = Utilities.GetColorFromHexa(App.ObjBrandingResponse.payload.branding_data.appearance.font_colour);


                PharmacyName = App.ObjBrandingResponse.payload.branding_data.pharmacy_name;
                PharmacyBranchName = App.ObjBrandingResponse.payload.branding_data.branch_name + @"               ";

                AddressLine1 = App.ObjBrandingResponse.payload.branding_data.address1;

                AddressLine2 = App.ObjBrandingResponse.payload.branding_data.address2;

                AddressLine3 = App.ObjBrandingResponse.payload.branding_data.city;
                PinCode = App.ObjBrandingResponse.payload.branding_data.postcode;

                PharmacistName1 = App.ObjBrandingResponse.payload.branding_data.pharmacist1;
                PharmacistName2 = App.ObjBrandingResponse.payload.branding_data.pharmacist2;
                WebsiteLink = App.ObjBrandingResponse.payload.branding_data.website;



                if (!string.IsNullOrEmpty(App.ObjBrandingResponse.payload.branding_data.twitter_link) && !string.IsNullOrWhiteSpace(App.ObjBrandingResponse.payload.branding_data.twitter_link))
                {
                    IsTwitterLinkVisible = Visibility.Visible;
                    TwitterLink = App.ObjBrandingResponse.payload.branding_data.twitter_link;
                }
                if (!string.IsNullOrEmpty(App.ObjBrandingResponse.payload.branding_data.facebook_link) && !string.IsNullOrWhiteSpace(App.ObjBrandingResponse.payload.branding_data.facebook_link))
                {
                    IsFacebookLinkVisible = Visibility.Visible;
                    FacebookLink = App.ObjBrandingResponse.payload.branding_data.facebook_link;
                }

                if (App.ObjBrandingResponse.payload.branding_data.opening_hours != null)
                {
                    bool isClosedToday = App.ObjBrandingResponse.payload.branding_data.opening_hours.SingleOrDefault(s => s.dayname == Convert.ToString(System.DateTime.Today.DayOfWeek)).is_closed;
                    string openingTime = Convert.ToString(App.ObjBrandingResponse.payload.branding_data.opening_hours.SingleOrDefault(s => s.dayname == Convert.ToString(System.DateTime.Today.DayOfWeek)).open);
                    string closingTime = Convert.ToString(App.ObjBrandingResponse.payload.branding_data.opening_hours.SingleOrDefault(s => s.dayname == Convert.ToString(System.DateTime.Today.DayOfWeek)).close);
                    string todayOpenTime = !isClosedToday ? openingTime + "-" + closingTime : "Closed";

                    Opentodaytime = todayOpenTime;

                    List<OpenHours> lstOpenHours = new List<OpenHours>();
                    OpenHours objOpenHours;
                    foreach (var item in App.ObjBrandingResponse.payload.branding_data.opening_hours)
                    {
                        objOpenHours = new OpenHours { DayName = item.dayname, Timings = !item.is_closed ? item.open + "-" + item.close : "Closed" };
                        lstOpenHours.Add(objOpenHours);
                    }
                    OpeningHours = lstOpenHours;
                }

            
        }
        /// <summary>
        /// Response for Pharmacy Details
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void pharmacydetailswebservicecall_UploadStringCompleted(object sender, UploadStringCompletedEventArgs e)
        {
            GetPharmacyInformationResponse objPhDetResponse = null;
            try
            {
                if (e.Result != null)
                {
                    var response = e.Result.ToString();
                    objPhDetResponse = Utils.JsonHelper.Deserialize<GetPharmacyInformationResponse>(response);
                    if ((objPhDetResponse.payload != null) && (objPhDetResponse.status == 0))
                    {
                        App.ObjBrandingResponse = objPhDetResponse;


                        objHomePanoramaVM.AppBarPrimaryColour = App.ObjBrandingResponse.payload.branding_data.appearance.primary_colour;
                        objHomePanoramaVM.PrimaryColour = Utilities.GetColorFromHexa(App.ObjBrandingResponse.payload.branding_data.appearance.primary_colour);
                        objHomePanoramaVM.SecondaryColour = Utilities.GetColorFromHexa(App.ObjBrandingResponse.payload.branding_data.appearance.secondary_colour);
                        objHomePanoramaVM.FontColor = Utilities.GetColorFromHexa(App.ObjBrandingResponse.payload.branding_data.appearance.font_colour);


                        objHomePanoramaVM.PharmacyName = objPhDetResponse.payload.branding_data.pharmacy_name;
                        objHomePanoramaVM.PharmacyBranchName = objPhDetResponse.payload.branding_data.branch_name + @"               ";
                        App.PharmacyBranchName = objHomePanoramaVM.PharmacyBranchName;
                        objHomePanoramaVM.AddressLine1 = objPhDetResponse.payload.branding_data.address1;
                        App.LoginPharmacyAddress1 = objPhDetResponse.payload.branding_data.address1;
                        objHomePanoramaVM.AddressLine2 = objPhDetResponse.payload.branding_data.address2;
                        App.LoginPharmacyAddress2 = objPhDetResponse.payload.branding_data.address2;
                        objHomePanoramaVM.AddressLine3 = objPhDetResponse.payload.branding_data.city;
                        objHomePanoramaVM.PinCode = objPhDetResponse.payload.branding_data.postcode;
                        App.PostCode = objPhDetResponse.payload.branding_data.postcode;
                        objHomePanoramaVM.PharmacistName1 = objPhDetResponse.payload.branding_data.pharmacist1;
                        objHomePanoramaVM.PharmacistName2 = objPhDetResponse.payload.branding_data.pharmacist2;
                        objHomePanoramaVM.WebsiteLink = objPhDetResponse.payload.branding_data.website;

                        App.PharmacyPhoneNo = objPhDetResponse.payload.branding_data.phone;
                        App.DrugsData = objPhDetResponse.payload.drugs_data;
                        if (App.DrugDBHash != objPhDetResponse.payload.drugs_hash)
                        {
                            UpdateDBFile();
                        }

                        if (!string.IsNullOrEmpty(objPhDetResponse.payload.branding_data.twitter_link) && !string.IsNullOrWhiteSpace(objPhDetResponse.payload.branding_data.twitter_link))
                        {
                            objHomePanoramaVM.IsTwitterLinkVisible = Visibility.Visible;
                            objHomePanoramaVM.TwitterLink = objPhDetResponse.payload.branding_data.twitter_link;
                        }
                        if (!string.IsNullOrEmpty(objPhDetResponse.payload.branding_data.facebook_link) && !string.IsNullOrWhiteSpace(objPhDetResponse.payload.branding_data.facebook_link))
                        {
                            objHomePanoramaVM.IsFacebookLinkVisible = Visibility.Visible;
                            objHomePanoramaVM.FacebookLink = objPhDetResponse.payload.branding_data.facebook_link;
                        }

                        if (objPhDetResponse.payload.branding_data.opening_hours != null)
                        {
                            bool isClosedToday = objPhDetResponse.payload.branding_data.opening_hours.SingleOrDefault(s => s.dayname == Convert.ToString(System.DateTime.Today.DayOfWeek)).is_closed;
                            string openingTime = Convert.ToString(objPhDetResponse.payload.branding_data.opening_hours.SingleOrDefault(s => s.dayname == Convert.ToString(System.DateTime.Today.DayOfWeek)).open);
                            string closingTime = Convert.ToString(objPhDetResponse.payload.branding_data.opening_hours.SingleOrDefault(s => s.dayname == Convert.ToString(System.DateTime.Today.DayOfWeek)).close);
                            string todayOpenTime = !isClosedToday ? openingTime + "-" + closingTime : "Closed";

                            objHomePanoramaVM.Opentodaytime = todayOpenTime;

                            List<OpenHours> lstOpenHours = new List<OpenHours>();
                            OpenHours objOpenHours;
                            foreach (var item in objPhDetResponse.payload.branding_data.opening_hours)
                            {
                                objOpenHours = new OpenHours { DayName = item.dayname, Timings = !item.is_closed ? item.open + "-" + item.close : "Closed" };
                                lstOpenHours.Add(objOpenHours);
                            }
                            objHomePanoramaVM.OpeningHours = lstOpenHours;
                        }

                        if (objPhDetResponse.payload.advert_data != null)
                        {
                            objHomePanoramaVM.AdvertisementData = new ObservableCollection<AdvertData>(objPhDetResponse.payload.advert_data);
                            App.AdImages = null;
                            foreach (var item in objPhDetResponse.payload.advert_data)
                            {
                                if (App.AdImages == null)
                                {
                                    App.AdImages = new List<string>();
                                    App.AdImages.Add(item.image_url.Replace("https", "http"));
                                }
                                else
                                {
                                    App.AdImages.Add(item.image_url.Replace("https", "http"));
                                }
                            }
                        }
                        objHomePanoramaVM.ProgressBarVisibilty = Visibility.Collapsed;
                    }
                }
            }
            catch (Exception)
            {
                objHomePanoramaVM.ProgressBarVisibilty = Visibility.Collapsed;
            }

        }