Esempio n. 1
0
        public async Task <ActionResult> DetailsOfGame(int id)
        {
            var boardgame = await _boardService.GetGameAsync(id);

            return(View(new BoardgameViewModel {
                Id = boardgame.ProductId, Description = boardgame.Description, ProductName = boardgame.ProductName, Coast = boardgame.Coast, Count = boardgame.Count
            }));
        }
Esempio n. 2
0
 public async Task <Boardgame> GetGameAsync(int id)
 {
     return(await _boardgameRepositiry.GetGameAsync(id));
 }