protected async System.Threading.Tasks.Task Load() { await CheckUserStatus(); var conDataGetGenderByGenderIdResult = await ConData.GetGenderByGenderId(GenderID); gender = conDataGetGenderByGenderIdResult; }
protected async System.Threading.Tasks.Task Load() { await CheckUserStatus(); gender = new SoccerLeagueTransferApp.Models.ConData.Gender() { }; }
public async Task <Models.ConData.Gender> CreateGender(Models.ConData.Gender gender) { OnGenderCreated(gender); context.Genders.Add(gender); context.SaveChanges(); return(gender); }
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); }
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!"); } }
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); }
partial void OnGenderUpdated(Models.ConData.Gender item);
partial void OnGenderGet(Models.ConData.Gender item);
partial void OnGenderDeleted(Models.ConData.Gender item);
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() { }; }