Ejemplo 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
            }));
        }
Ejemplo n.º 2
0
 public async Task <Boardgame> GetGameAsync(int id)
 {
     return(await _boardgameRepositiry.GetGameAsync(id));
 }