public IActionResult GetById([FromRoute] Guid sessionEntityId) { var result = _sessionLogic.GetById(sessionEntityId); if (result == null) { return(NotFound()); } return(Ok(result)); }