protected async System.Threading.Tasks.Task Load()
        {
            originatingClubList = new List <SoccerLeagueTransferApp.Models.ConData.ClubDetail>()
            {
            };

            await CheckUserStatus();

            getPlayersResult = new List <SoccerLeagueTransferApp.Models.ConData.Player>()
            {
            };

            var conDataGetClubDetailsResult = await ConData.GetClubDetails();

            getClubDetailsResult = conDataGetClubDetailsResult;

            var conDataGetTransferTypesResult = await ConData.GetTransferTypes();

            getTransferTypesResult = conDataGetTransferTypesResult;

            playertransfer = new SoccerLeagueTransferApp.Models.ConData.PlayerTransfer()
            {
            };

            await MuyikGetPlayerList();
        }
コード例 #2
0
        protected async System.Threading.Tasks.Task Load()
        {
            var conDataGetPlayerTransferByTransferIdResult = await ConData.GetPlayerTransferByTransferId(TransferID);

            playertransfer = conDataGetPlayerTransferByTransferIdResult;

            await CheckUserStatus();
        }
コード例 #3
0
        public async Task <Models.ConData.PlayerTransfer> CreatePlayerTransfer(Models.ConData.PlayerTransfer playerTransfer)
        {
            OnPlayerTransferCreated(playerTransfer);

            context.PlayerTransfers.Add(playerTransfer);
            context.SaveChanges();

            return(playerTransfer);
        }
コード例 #4
0
        protected async System.Threading.Tasks.Task Form0Submit(SoccerLeagueTransferApp.Models.ConData.PlayerTransfer args)
        {
            try
            {
                var conDataCreatePlayerTransferResult = await ConData.CreatePlayerTransfer(playertransfer);

                DialogService.Close(playertransfer);
            }
            catch (System.Exception conDataCreatePlayerTransferException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new PlayerTransfer!");
            }
        }
コード例 #5
0
        protected async System.Threading.Tasks.Task Load()
        {
            var conDataGetPlayersResult = await ConData.GetPlayers();

            getPlayersResult = conDataGetPlayersResult;

            var conDataGetClubDetailsResult = await ConData.GetClubDetails();

            getClubDetailsResult = conDataGetClubDetailsResult;

            var conDataGetTransferTypesResult = await ConData.GetTransferTypes();

            getTransferTypesResult = conDataGetTransferTypesResult;

            playertransfer = new SoccerLeagueTransferApp.Models.ConData.PlayerTransfer()
            {
            };
        }
 protected async System.Threading.Tasks.Task Form0Submit(SoccerLeagueTransferApp.Models.ConData.PlayerTransfer args)
 {
     await MuyikTransferPlayer();
 }
コード例 #7
0
 partial void OnPlayerTransferDeleted(Models.ConData.PlayerTransfer item);
コード例 #8
0
        public async Task <Models.ConData.PlayerTransfer> UpdatePlayerTransfer(int?transferId, Models.ConData.PlayerTransfer playerTransfer)
        {
            OnPlayerTransferUpdated(playerTransfer);

            var item = context.PlayerTransfers
                       .Where(i => i.TransferID == transferId)
                       .FirstOrDefault();

            if (item == null)
            {
                throw new Exception("Item no longer available");
            }
            var entry = context.Entry(item);

            entry.CurrentValues.SetValues(playerTransfer);
            entry.State = EntityState.Modified;
            context.SaveChanges();

            return(playerTransfer);
        }
コード例 #9
0
        public async Task <Models.ConData.PlayerTransfer> CancelPlayerTransferChanges(Models.ConData.PlayerTransfer item)
        {
            var entity = context.Entry(item);

            entity.CurrentValues.SetValues(entity.OriginalValues);
            entity.State = EntityState.Unchanged;

            return(item);
        }
コード例 #10
0
 partial void OnPlayerTransferGet(Models.ConData.PlayerTransfer item);
コード例 #11
0
        protected async System.Threading.Tasks.Task Grid0RowSelect(SoccerLeagueTransferApp.Models.ConData.PlayerTransfer args)
        {
            var dialogResult = await DialogService.OpenAsync <EditPlayerTransfer>("Edit Player Transfer", new Dictionary <string, object>() { { "TransferID", args.TransferID } });

            await InvokeAsync(() => { StateHasChanged(); });
        }