public async Task <ApiResponse> GetMapsList() { var getMApsListQuery = _queriesFactory.Get <GetMapsListQuery>(); var args = new GetMapsListQueryArgs { ActionExecutorId = HttpContext.User.GetUserId() }; var result = await getMApsListQuery.Ask(args); return(ApiResponse.Success(result)); }
public async Task <ApiResponse> GetAvailableProvider() { var query = _queriesFactory.Get <GetAvailableMapProvidersQuery>(); var args = new GetAvailableMapProvidersQueryArgs { ActionExecutorId = HttpContext.User.GetUserId() }; var result = await query.Ask(args); return(ApiResponse.Success(result)); }
public async Task <ApiResponse> GetMapObjects([FromRoute] string mapId) { var query = _queriesFactory.Get <GetMapObjectsQuery>(); var args = new GetMapObjectsQueryArgs { ActionExecutorId = HttpContext.User.GetUserId(), MapId = mapId }; var result = await query.Ask(args); return(ApiResponse.Success(result)); }