public ActionResult <PlayerReadDto> GetPlayerbyId(int id) { var playerItem = _repository.GetPlayerById(id); if (playerItem != null) { return(Ok(_mapper.Map <PlayerReadDto>(playerItem))); } return(NotFound()); }
public ActionResult <PlayerReadDto> GetPlayerbyId(int id) { var playerItem = _repository.GetPlayerById(id); if (playerItem != null) { return(Ok(_mapper.Map <PlayerReadDto>(playerItem))); } return(NotFound()); }