Beispiel #1
0
        public async Task <IActionResult> UpdateCamera([FromBody] UpdateCameraRequest request)
        {
            string      userGuid    = HttpContext.Request.Headers["UserGuid"];
            CameraLogic cameraLogic = new CameraLogic();
            await cameraLogic.UpdateCamera(request, userGuid);

            if (!cameraLogic.Response.IsSuccessful)
            {
                return(BadRequest(cameraLogic.Response.ErrorMessage));
            }
            return(Ok("Success"));
        }