Пример #1
0
        // GET: Rooms/Create
        public async Task <ActionResult> Create()
        {
            var gameCultures = await _gameCultureRepository.GetGameCulturesAsync();

            var vm = new CreateRoomVm(gameCultures.cultures);

            return(View(vm));
        }
        public async Task <IEnumerable <CultureVm> > GetCulturesAsync()
        {
            var cultures = await _gameCultureRepository.GetGameCulturesAsync();

            var culturesVm = _cultureVmFactory.MapCultureToVm(cultures);

            return(culturesVm);
        }