Ejemplo n.º 1
0
        public async Task <IActionResult> GetCameras()
        {
            string        userGuid    = HttpContext.Request.Headers["UserGuid"];
            CameraLogic   cameraLogic = new CameraLogic();
            List <Camera> cameras     = await cameraLogic.GetAllUserCameras(userGuid);

            if (cameras == null)
            {
                return(Ok(new List <Camera>()));
            }
            return(Ok(cameras));
        }