public async Task <ActionResult <List <Event> > > GetEventsItems() { var GetEvents = await Event.GetAllEventListAsync(); foreach (var item in GetEvents) { } //return await _context.TodoItems.ToListAsync(); return(await Event.GetAllEventListAsync()); }
public async Task <IActionResult> SpecialEvent() { var Date = await FEventServices.GetAllEventListAsync(); var Obj = new WebEvento.ViewModel.InformationViewModel(); Obj.EventList = Date.ToList(); return(View(Obj)); }