Exemple #1
0
        public PlayerInfo ReadInfo(int id)
        {
            PlayerDto info = dal.GetById(id);

            return(new PlayerInfo()
            {
                IdPlayer = info.IdPlayer,
                Points = info.Points,
                Rebounds = info.Rebounds,
                Assists = info.Assists,
                Blocks = info.Blocks,
                Nationality = info.Nationality
            });
        }
Exemple #2
0
 public Player GetById(int id)
 {
     // Transactional islemleri ve kontroller
     _loggerService.Log();
     return(_playerDal.GetById(id));
 }
Exemple #3
0
 public Player Get(Expression <Func <Player, bool> > filter)
 {
     return(_playerDal.GetById(filter));
 }