private async void GetEvents() { IsBusy = true; var events = await EventServices.GetAllEvents(); EventList = new ObservableCollection <Event>(events); IsEventEmpty = EventList.Count == 0 ? true : false; IsBusy = false; }
public IActionResult Index() { ListLiaisonViewModel allEvent = new ListLiaisonViewModel(); allEvent.ListeEvent = EventServices.GetAllEvents().Select(w => new ShowEventVueModel { Id = w.Id, Nom = w.Nom, Date = w.Date, }); return(View(allEvent)); }