Example #1
0
        public async Task <ActionResult> AttachedGamesModal(int friendId)
        {
            var friend = await _friendAppService.Get(new EntityDto <int>(friendId));

            var gamesAvailable = await _gameAppService.GetGamesAvailable();

            var gamesBorrowed = await _gameAppService.GetGamesBorrow(friendId);

            var model = new AtacchedGamesViewModel
            {
                GamesAvailable = gamesAvailable,
                Friend         = friend,
                GamesBorrowed  = gamesBorrowed,
            };

            return(View("_AttachedGamesModal", model));
        }
Example #2
0
 public async Task<IActionResult> Read(Guid id)
 {
     return _actionResultConverter.Convert(await _friendService.Get(id));
 }