コード例 #1
0
ファイル: CustomersController.cs プロジェクト: mitya2/SIAM
        public async Task <ActionResult <IEnumerable <Customer> > > GetCustomers()
        {
            var customers = await _customersRep.GetCustomersAsync();

            if (!customers.Any())
            {
                return(NotFound());
            }
            return(Ok(customers));
        }