public async Task <IActionResult> GetAll() { var businessId = _contextService.GetBusinessId(HttpContext); try { var response = await _service.GetAll(businessId); return(Ok(response)); } catch { return(StatusCode(500, "Internal Server Error.")); } }
public IActionResult Get() { return(Ok( _agendaService.GetAll() )); }
public IActionResult GetAgendas() { List <Agenda> agendas = _agendaService.GetAll().ToList(); return(Ok(agendas)); }