Exemple #1
0
        public async Task <ActionResult> Transfer([Bind("SelectedPlayerIds")] TransferViewModel viewModel)
        {
            var result = await this.playerUseCase.GetTransferPlayers(viewModel.SelectedPlayerIds);

            viewModel.SearchedPlayers = new List <Player>();
            viewModel.TransferPlayers = result;
            return(this.View(viewModel));
        }
Exemple #2
0
        public async Task <ActionResult> RequestTransfer([Bind("TransferPlayerIds")] TransferViewModel viewModel)
        {
            var teamId = 1; //TODO ログイン機能出来次第現在のidを取る

            await this.playerUseCase.AddRequestTransferPlayers(viewModel.TransferPlayerIds, teamId);

            return(this.RedirectToAction(nameof(RequestState)));
        }
Exemple #3
0
        public ActionResult Transfer()
        {
            var viewModel = new TransferViewModel(new List <Player>());

            return(this.View(viewModel));
        }