public async Task <IActionResult> Get(int id) { var entity = await _ticketSrvice.GetAsync(id); if (entity == null) { return(NotFound()); } return(Ok(entity)); }