Skip to content

Demo api for managing hotels and bookings. Implemented in .NET Core 3.1 with EF Core, SQL Server and async/await.

Notifications You must be signed in to change notification settings

fdres/HotelInfo.Api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HotelInfo.Api

This project is a simple REST Web Api which implements CRUD operations for managing hotel and booking records.

The project is developed in Visual Studio 2019 with .NET Core 3.1 Framework and EF Core for database queries. All calls are made asynchronously using async/await.

SQL Server is used as a database provider.

Controller implementation is done with usage of repository pattern.

Usage

The project uses local mssqlserver that is installed with Visual Studio. In order to use another sql server instance, just change the connection string in appSettings.json file.

Before you begin, run the following command in Package Manager Console

> update-database

This will create the database HotelsDB and apply all migrations. Migrations include some demo data.

Notes

  • A postman collection and a postman environment file are included in the project directory.
  • All exceptions are handled by a custom middleware.

About

Demo api for managing hotels and bookings. Implemented in .NET Core 3.1 with EF Core, SQL Server and async/await.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages