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(); }
protected async System.Threading.Tasks.Task Load() { var conDataGetPlayerTransferByTransferIdResult = await ConData.GetPlayerTransferByTransferId(TransferID); playertransfer = conDataGetPlayerTransferByTransferIdResult; await CheckUserStatus(); }
public async Task <Models.ConData.PlayerTransfer> CreatePlayerTransfer(Models.ConData.PlayerTransfer playerTransfer) { OnPlayerTransferCreated(playerTransfer); context.PlayerTransfers.Add(playerTransfer); context.SaveChanges(); return(playerTransfer); }
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!"); } }
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(); }
partial void OnPlayerTransferDeleted(Models.ConData.PlayerTransfer item);
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); }
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); }
partial void OnPlayerTransferGet(Models.ConData.PlayerTransfer item);
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(); }); }