예제 #1
0
        public IActionResult GetCustomers()
        {
            var customerEntities = _customerInfoRepository.GetCustomers();

            if (customerEntities == null)
            {
                return(StatusCode(500, "Sorry, the database is empty!"));
            }


            return(Ok(customerEntities));
        }