Beispiel #1
0
        public async void AddEventAsync(string t, string d, DateTime date, string i)
        {
            var @event = new Event(t, d, date, i);

            var eventResult = await _companyService.AddEvent(Company.Id, @event);

            Events.Add(eventResult);
            AlertService.Toast("Event toegevoegd", $"Het event {eventResult.Title} toegevoegd");
            //Company.Events.Add(@event);
        }