public IActionResult Calendar() { ViewData["page-2"] = "active"; var guests = _internService.GetWhitelist(); var eventype = _eventTypeService.GetAll(); var model = new CalendarViewModel(eventype, guests) { Creator = ViewBag.fullname }; return(View(model)); }
public IActionResult Calendar() { ViewData["page-2"] = "active"; object guests = _internService.GetWhitelist(); string whitelist = AppExtensions.Dump(guests); IList <EventTypeModel> eventype = _eventTypeService.GetAll(); var model = new CalendarViewModel(eventype, whitelist) { Creator = ViewBag.fullname }; return(View(model)); }
public dynamic GetWhitelist() { var guests = _internService.GetWhitelist(); return(guests); }
public IActionResult GetWhitelist() { var guests = _internService.GetWhitelist(); return(Ok(guests)); }