Esempio n. 1
0
        public async Task SaveEvent()
        {
            var selectedEvent = Events.FirstOrDefault(i => i.Id == NewEventParticipation.Event.Id);

            NewEventParticipation.Id           = Guid.NewGuid();
            NewEventParticipation.PointsEarned = selectedEvent.Points;
            NewEventParticipation.UserId       = Id;

            await _eventParticipationService.Create(NewEventParticipation);

            SelectedRelativeIndex = (DateTimeOffset.UtcNow.Month - NewEventParticipation.SubmissionDate.Month);

            await SetEventParticipations();

            //clear out UI
            NewEventParticipation = new EventParticipation();
        }
Esempio n. 2
0
 public Task Create(EventParticipation eventParticipation)
 {
     return(_proxy.Create(eventParticipation));
 }