コード例 #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."));
            }
        }