public async Task <IActionResult> DeleteCamera([FromBody] Camera request) { string userGuid = HttpContext.Request.Headers["UserGuid"]; CameraLogic cameraLogic = new CameraLogic(); await cameraLogic.DeleteCamera(request, userGuid); if (!cameraLogic.Response.IsSuccessful) { return(BadRequest(cameraLogic.Response.ErrorMessage)); } return(Ok(JsonConvert.SerializeObject("success"))); }