private async void GetAllNewEventData(object sender, AddNewEventFinall e) { _newEvent.GroupId = _groupId; await PostObjectByApi("events", _newEvent); Toast.MakeText(this, "New event added !", ToastLength.Short).Show(); await UpdateEventList(_eventListView); }
private async void UpdateEvent(object sender, AddNewEventFinall e) { await PutObjectByApi("events", new PutEventModel { EventId = EventId, Title = e.Event.Title, Description = e.Event.Description, DateOfOccurance = e.Event.DateOfOccurance, Location = e.Event.Location }); await LoadEvent(); }