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);