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)); }
public async Task<IActionResult> Read(Guid id) { return _actionResultConverter.Convert(await _friendService.Get(id)); }