Пример #1
0
        // GET: api/CustomerInfo
        public IHttpActionResult GetAllCustomerInfos()
        {
            var custinfoRepo     = new CustomerInfoRepository();
            var customerinfoList = custinfoRepo.GetAllCustomerInfos();

            if (customerinfoList == null || customerinfoList.Count == 0)
            {
                return(NotFound());
            }

            return(Ok(customerinfoList));
        }