コード例 #1
0
        public async Task <ActionResult <CustomerDapper> > GetById(int id)
        {
            var customerDapper = await _customerData.GetByIdAsync(id);

            if (customerDapper is null)
            {
                return(NotFound());
            }

            return(Ok(customerDapper));
        }