public ActionResult Index()
        {
            IslamicDateAndPrayerTimes _islamicDateAndPrayTimeModel = new IslamicDateAndPrayerTimes();
            _islamicDateAndPrayTimeModel = GetPrayerTimesAndDateModel();

            ViewBag.IslamicDate = _islamicDateAndPrayTimeModel.TodayDate + " | " + _islamicDateAndPrayTimeModel.HijriDay + " " + _islamicDateAndPrayTimeModel.HijriMonthInEnglish + ", " + _islamicDateAndPrayTimeModel.HijriYear + " Hijri";

            return View();
        }
        private IslamicDateAndPrayerTimes GetPrayerTimesAndDateModel()
        {
            IslamicDateAndPrayerTimes _retVal = new IslamicDateAndPrayerTimes();

            PrayTime _prayerTimes = new PrayTime();
            double _longitude = 32.91; // 96.48; //25;
            double _lattitude = -96.64; // 32.47; // 55;
            int _year = 0;
            int _month = 0;
            int _day = 0;
            int _timeZone = 0;

            DateTime _currentDateTime = DateTime.Now;
            _year = _currentDateTime.Year;
            _month = _currentDateTime.Month;
            _day = _currentDateTime.Day;
            _timeZone = TimeZone.CurrentTimeZone.GetUtcOffset(new DateTime(_year, _month, _day)).Hours;
            String[] _prayers;

            _prayerTimes.setCalcMethod(3);
            _prayerTimes.setAsrMethod(1);
            _prayers = _prayerTimes.getDatePrayerTimes(_year, _month, _day, _longitude, _lattitude, _timeZone);

            _retVal.FajrTime = Convert24HrsTo12Hrs(_prayers[0]);
            _retVal.DuhrTime = Convert24HrsTo12Hrs(_prayers[2]);
            _retVal.AsrTime = Convert24HrsTo12Hrs(_prayers[3]);
            _retVal.MaghribTime = Convert24HrsTo12Hrs(_prayers[4]);
            _retVal.IshaTime = Convert24HrsTo12Hrs(_prayers[6]);

            //Get Hijri Date
            DateTime _dt = DateTime.Today.Date.AddDays(0);
            System.Globalization.DateTimeFormatInfo _hijriDTFI; //Hijri Date Format Info
            _hijriDTFI = new System.Globalization.CultureInfo("ar-SA", false).DateTimeFormat;
            _hijriDTFI.Calendar = new System.Globalization.UmAlQuraCalendar();

            _retVal.HijriYear = _dt.Date.ToString("yyyy", _hijriDTFI);            // Gets the Year i.e., 1436 etc.
            _retVal.HijriDay = _dt.Date.ToString("dd", _hijriDTFI);               // Gets the date i.e., 25th of the month etc.
            _retVal.DayOfTheWeekInArabic = _dt.Date.ToString("dddd", _hijriDTFI); // Gets the day of the week in Arabic i.e., Khamees (Thursday) etc.
            _retVal.HijriMonthInArabic = _dt.Date.ToString("MMMM", _hijriDTFI);   // Gets the Month in Arabic i.e., Rajab etc.

            for (int i = 0; i <= _hijriDTFI.MonthGenitiveNames.Count(); i++)
            {
                if (_retVal.HijriMonthInArabic == _hijriDTFI.MonthGenitiveNames[i].ToString())
                {
                    _retVal.HijriMonthInEnglish = GetHijriMonthInEnglish(i + 1); // Gets the Month in English i.e., Rajab etc.
                    break;
                }
            }

            return _retVal;
        }