public IActionResult OldSiteRedirect(string Id) { try { int OldId = Convert.ToInt32(Id); Masjid masjid = _taqweemService.MasjidGetByOldSiteId(OldId); if (masjid != null) { return(RedirectToAction("MasjidInfo", "Home", new { Id = masjid.Id })); } else { return(RedirectToAction("Index", "Home")); } } catch (Exception ex) { return(RedirectToAction("Index", "Home")); } }