Пример #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));
        }