Exemplo n.º 1
0
        public async Task <object> GetAllBeaConData([FromBody] GetBeaconDataParam data)
        {
            try
            {
                StringValues            api_key;
                StringValues            EmpCode;
                List <ManagementBeacon> beaconDatas = _masterRepo.GetAllBeaconDatas();

                return(new
                {
                    success = true,
                    data = beaconDatas,
                    Message = "Success!"
                });
            }
            catch
            {
                return(new
                {
                    success = false,
                    data = new ManagementBeacon(),
                    Message = "Fail to get BeaconData! Please Contact Admin!"
                });
            }
        }