protected async System.Threading.Tasks.Task Load()
        {
            await CheckUserStatus();

            var conDataGetTransferTypeByTransferTypeIdResult = await ConData.GetTransferTypeByTransferTypeId(TransferTypeID);

            transfertype = conDataGetTransferTypeByTransferTypeIdResult;
        }
コード例 #2
0
        protected async System.Threading.Tasks.Task Load()
        {
            transfertype = new SoccerLeagueTransferApp.Models.ConData.TransferType()
            {
            };

            await CheckUserStatus();
        }
コード例 #3
0
        public async Task <Models.ConData.TransferType> CreateTransferType(Models.ConData.TransferType transferType)
        {
            OnTransferTypeCreated(transferType);

            context.TransferTypes.Add(transferType);
            context.SaveChanges();

            return(transferType);
        }
コード例 #4
0
        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");
            }
        }
コード例 #6
0
 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(); });
        }
コード例 #8
0
 partial void OnTransferTypeCreated(Models.ConData.TransferType item);
コード例 #9
0
        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);
        }
コード例 #10
0
 partial void OnTransferTypeGet(Models.ConData.TransferType item);