Esempio n. 1
0
 public async Task <IEnumerable <object> > MarkersGet()
 {
     return(_taqweemService.MasjidGetAll()
            .Select(d => new MasjidDTOLight
     {
         Id = d.Id,
         Name = d.Name,
         Town = d.Town,
         Country = d.Country,
         Latitude = d.Latitude,
         Longitude = d.Longitude
     })
            //.Take(10)
            .ToList());
 }
Esempio n. 2
0
        public IActionResult Index()
        {
            List <Masjid> AllMasjids = _taqweemService.MasjidGetAll().ToList();

            Markers Model = new Markers();

            Model.Marker = AllMasjids;

            return(View(Model));

            /*
             * EmailModel Model = _emailSender.ReportEmailModel();
             *
             * return View("EmailTemplate", Model);
             */
        }