public IActionResult GetHistory(Guid id) { if (id == Guid.Empty) { return(BadRequest()); } var history = _service.GetHistory(id); if (history == null) { return(BadRequest()); } return(Ok(history)); }