Exemplo n.º 1
0
        protected async void AddResult()
        {
            var result = await ResultDataService.Add(new Result()
            {
                EventId = Event.EventId
            });

            Event.Results.Add(result);
            await EventDataService.Update(Event.EventId, Event);

            StateHasChanged();
        }
Exemplo n.º 2
0
        protected async void AddParticipant()
        {
            var newParticipant = await EventParticipantDataService.Add(new EventParticipant()
            {
                EventId = Event.EventId
            });

            Event.Participants.Add(newParticipant);

            await EventDataService.Update(Event.EventId, Event);

            StateHasChanged();
        }
Exemplo n.º 3
0
 protected void UpdateEventChanges()
 {
     EventDataService.Update(Event.EventId, Event);
 }