public async Task <object> GetVisitors() { var result = await _visitorService.GetAsync(); return(result.Select(x => x?.VisitorView())); }
public async Task <IActionResult> Get(Guid visitorId) { var ticket = await _visitorService.GetAsync(visitorId); return(Ok(ticket)); }