/ResturantAsp.Net-WebApi

Asp.Net core webapi crud - (Resturant 1.0)

Primary LanguageC#

ResturantAsp.Net-WebApi

This is the webapi version of previous asp.net mvc crud(https://github.com/Ravinduprasath/AspNetMvc-Restaurent)

  • Used Nuget Packages
    🖤 Dapper 2.0.90 Or Dapper.SimpleCRUD 2.3.0
    🖤 Microsoft.Data.SqlClient 3.0.0

csharp dotnet


👓 Get foodlist - Get (https://localhost:5001/api/food)

Postman_5fTdVyQG7m



👓 Create Order - Post (https://localhost:5001/api/order)

Postman_Uo3mUPy82B



👓 View Order - Get (https://localhost:5001/api/order/13005)

Postman_Y7046mKp9a



👓 Update Order - Put (https://localhost:5001/api/order)

Postman_1FptRyLk6q

Updated Order

Postman_XlW7g4Gx7l



👓 Delete Order - Delete (https://localhost:5001/api/order/13005)

Postman_g4oMiRuoD5



Sql Data Base

  1. Restore FoodDatabase.bak Using SSMS
  2. Change Connection String In DataLibrary -> DataAccess -> GetCon()