N-tier refers to many devices the application components can be spreaded across. The sample is a 1 tier (while the database is actually a tier, it usually isn’t counted), multiple layer app. It has 3 or 4 layers depending on how you count. A typically 2-tier website would have a webapi application and a web ui application. If microservices are used, each is a tier.
while the sample has multiple layers, because they are all in the same project, it’s easy for a lower layer to access a higher layer without a formal adapter. Making each layer is own project prevents this from happening.
when building websites, allowing the exposed ui website direct access to database and other resources is considered a security risk. The ui site should call another service, to access the resources. So for security your site should be 2-tier.