Exemplo n.º 1
0
        public IActionResult MasjidList()
        {
            List <Masjid> AllMasjids = _taqweemService.MasjidGetAll().OrderBy(s => s.OldSiteId).ToList();

            MasjidListViewModel Model = new MasjidListViewModel();

            Model.Masjids = AllMasjids;

            return(View(Model));
        }
Exemplo n.º 2
0
        public IActionResult Masjids()
        {
            if (!IsSuperUser())
            {
                return(RedirectToAction("Index", "Manage"));
            }

            List <Masjid> AllMasjids = Repository.GetAll <Masjid>().OrderByDescending(s => s.CreatedAt).ToList();

            MasjidListViewModel Model = new MasjidListViewModel();

            Model.Masjids = AllMasjids;

            return(View(Model));
        }