コード例 #1
0
        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."));
            }
        }
コード例 #2
0
 public IActionResult Get()
 {
     return(Ok(
                _agendaService.GetAll()
                ));
 }
コード例 #3
0
        public IActionResult GetAgendas()
        {
            List <Agenda> agendas = _agendaService.GetAll().ToList();

            return(Ok(agendas));
        }