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

            var conDataGetGenderByGenderIdResult = await ConData.GetGenderByGenderId(GenderID);

            gender = conDataGetGenderByGenderIdResult;
        }
예제 #2
0
        protected async System.Threading.Tasks.Task Load()
        {
            await CheckUserStatus();

            gender = new SoccerLeagueTransferApp.Models.ConData.Gender()
            {
            };
        }
예제 #3
0
        public async Task <Models.ConData.Gender> CreateGender(Models.ConData.Gender gender)
        {
            OnGenderCreated(gender);

            context.Genders.Add(gender);
            context.SaveChanges();

            return(gender);
        }
예제 #4
0
        public async Task <Models.ConData.Gender> CancelGenderChanges(Models.ConData.Gender item)
        {
            var entity = context.Entry(item);

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

            return(item);
        }
예제 #5
0
        protected async System.Threading.Tasks.Task Form0Submit(SoccerLeagueTransferApp.Models.ConData.Gender args)
        {
            try
            {
                var conDataCreateGenderResult = await ConData.CreateGender(gender);

                DialogService.Close(gender);
            }
            catch (System.Exception conDataCreateGenderException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new Gender!");
            }
        }
예제 #6
0
        public async Task <Models.ConData.Gender> UpdateGender(int?genderId, Models.ConData.Gender gender)
        {
            OnGenderUpdated(gender);

            var item = context.Genders
                       .Where(i => i.GenderID == genderId)
                       .FirstOrDefault();

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

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

            return(gender);
        }
예제 #7
0
 partial void OnGenderUpdated(Models.ConData.Gender item);
예제 #8
0
 partial void OnGenderGet(Models.ConData.Gender item);
예제 #9
0
 partial void OnGenderDeleted(Models.ConData.Gender item);
예제 #10
0
        protected async System.Threading.Tasks.Task Grid0RowSelect(SoccerLeagueTransferApp.Models.ConData.Gender args)
        {
            var dialogResult = await DialogService.OpenAsync <EditGender>("Edit Gender", new Dictionary <string, object>() { { "GenderID", args.GenderID } });

            await InvokeAsync(() => { StateHasChanged(); });
        }
 protected async System.Threading.Tasks.Task Form0Submit(SoccerLeagueTransferApp.Models.ConData.Gender args)
 {
     await MuyikDeleteGender();
 }
 protected async System.Threading.Tasks.Task Load()
 {
     gender = new SoccerLeagueTransferApp.Models.ConData.Gender()
     {
     };
 }