public async Task <NoContentResult> ReactivateLocation(string id, [FromQuery] Guid?trackingGuid = null) { _context.Security = new K2SO.Auth.Security(HttpContext.Request.Headers["Authorization"]); trackingGuid = IG2000.Data.Utilities.Logging.CreateLogTrackingHeader(trackingGuid, _context); long longId = Utilities.RestErrorHandler.CheckId(id, _context, (Guid)trackingGuid); await _locationModel.DeleteOrReactivate(longId, true, (Guid)trackingGuid); return(NoContent()); }