Ejemplo n.º 1
0
        public async Task Save()
        {
            var eventObj = Events.FirstOrDefault(i => i.Id == DialogId);

            if (eventObj == default)
            {
                NewOrEditEvent.Id = DialogId;
                await _eventManagementService.Create(NewOrEditEvent);
            }
            else
            {
                await _eventManagementService.Update(NewOrEditEvent);
            }

            EditModalOpen = false;
            Events        = await _eventManagementService.GetAll();

            NewOrEditEvent = new Event();
        }
Ejemplo n.º 2
0
 public Task Create(Event eventObj)
 {
     return(_proxy.Create(eventObj));
 }