Example #1
0
        // GET: Beacon
        public async Task <ActionResult> Index()
        {
            EntityDTO dto = new EntityDTO()
            {
                Id = Guid.Parse(HttpContext.Session.GetString("LocationId"))
            };
            IEnumerable <ReadBeaconDTO> beacons = await _beaconService.GetAllBeacons(dto);

            return(View(beacons));
        }
Example #2
0
        public async Task <List <ReadBeaconDTO> > GetAllBeacons(EntityDTO input)
        {
            try
            {
                var beacons = await _beaconService.GetAllBeacons(input);

                return(beacons);
            }
            catch (Exception)
            {
                throw;
            }
        }