AspNetCorePostgreSQLDockerApp.Repository.CustomersRepository.GetCustomerAsync C# (CSharp) Method

GetCustomerAsync() public method

public GetCustomerAsync ( int id ) : Task
id int
return Task
        public async Task<Customer> GetCustomerAsync(int id)
        {
            return await _context.Customers.SingleOrDefaultAsync(c => c.Id == id);
        }