public CreateGroupVm(IResponseService responseService, IRepository repository, NavigationManager navigationManager, ICurrentUserService currentUser) { _responseService = responseService; _repository = repository; _currentUser = currentUser; item = new CreateGroupModel(); notification = new NotificationModel(); Games = new GetAllGames(); _navigationManager = navigationManager; }
public GetAllGamesResponse GetAllGames(GetAllGames request) { return(new GetAllGamesResponse(new SQLHelper().GetAllGames(request.UserId))); }
public async Task <IEnumerable <GameDto> > Handle(GetAllGames request, CancellationToken cancellationToken) { var games = await db.GetAsync <Game>(); return(mapper.Map <IEnumerable <GameDto> >(games)); }