예제 #1
0
        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;
        }
예제 #2
0
 public GetAllGamesResponse GetAllGames(GetAllGames request)
 {
     return(new GetAllGamesResponse(new SQLHelper().GetAllGames(request.UserId)));
 }
예제 #3
0
        public async Task <IEnumerable <GameDto> > Handle(GetAllGames request, CancellationToken cancellationToken)
        {
            var games = await db.GetAsync <Game>();

            return(mapper.Map <IEnumerable <GameDto> >(games));
        }