public IActionResult FindBy(Guid id) { try { var response = _mapper.Map <IList <Event>, IList <EventViewModel> >(_eventAppService.FindBy(x => x.Players.Any(y => y.Id == id))); return(Ok(response)); } catch (Exception ex) { return(BadRequest(ex.Message)); } }