protected async System.Threading.Tasks.Task Load() { await CheckUserStatus(); var conDataGetTransferTypeByTransferTypeIdResult = await ConData.GetTransferTypeByTransferTypeId(TransferTypeID); transfertype = conDataGetTransferTypeByTransferTypeIdResult; }
protected async System.Threading.Tasks.Task Load() { transfertype = new SoccerLeagueTransferApp.Models.ConData.TransferType() { }; await CheckUserStatus(); }
public async Task <Models.ConData.TransferType> CreateTransferType(Models.ConData.TransferType transferType) { OnTransferTypeCreated(transferType); context.TransferTypes.Add(transferType); context.SaveChanges(); return(transferType); }
public async Task <Models.ConData.TransferType> CancelTransferTypeChanges(Models.ConData.TransferType item) { var entity = context.Entry(item); entity.CurrentValues.SetValues(entity.OriginalValues); entity.State = EntityState.Unchanged; return(item); }
protected async System.Threading.Tasks.Task Form0Submit(SoccerLeagueTransferApp.Models.ConData.TransferType args) { try { var conDataUpdateTransferTypeResult = await ConData.UpdateTransferType(TransferTypeID, transfertype); DialogService.Close(transfertype); } catch (System.Exception conDataUpdateTransferTypeException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update TransferType"); } }
protected async System.Threading.Tasks.Task Form0Submit(SoccerLeagueTransferApp.Models.ConData.TransferType args) { await MuyikDeleteTransferType(); }
protected async System.Threading.Tasks.Task Grid0RowSelect(SoccerLeagueTransferApp.Models.ConData.TransferType args) { var dialogResult = await DialogService.OpenAsync <EditTransferType>("Edit Transfer Type", new Dictionary <string, object>() { { "TransferTypeID", args.TransferTypeID } }); await InvokeAsync(() => { StateHasChanged(); }); }
partial void OnTransferTypeCreated(Models.ConData.TransferType item);
public async Task <Models.ConData.TransferType> UpdateTransferType(int?transferTypeId, Models.ConData.TransferType transferType) { OnTransferTypeUpdated(transferType); var item = context.TransferTypes .Where(i => i.TransferTypeID == transferTypeId) .FirstOrDefault(); if (item == null) { throw new Exception("Item no longer available"); } var entry = context.Entry(item); entry.CurrentValues.SetValues(transferType); entry.State = EntityState.Modified; context.SaveChanges(); return(transferType); }
partial void OnTransferTypeGet(Models.ConData.TransferType item);