add lastmodified and lastmodifiedid to table also add code for modified and create
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using CarParkValidationAPI.Authorization;
|
||||
using CarParkValidationAPI.Datas;
|
||||
using CarParkValidationAPI.Entities;
|
||||
using CarParkValidationAPI.Helpers;
|
||||
using CarParkValidationAPI.Interface;
|
||||
using CarParkValidationAPI.Models;
|
||||
using CarParkValidationAPI.Repository;
|
||||
@@ -97,15 +98,15 @@ namespace CarParkValidationAPI
|
||||
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
|
||||
public void Configure(IApplicationBuilder app, IWebHostEnvironment env, DataContext context)
|
||||
{
|
||||
|
||||
/*
|
||||
if (env.IsDevelopment())
|
||||
{
|
||||
app.UseDeveloperExceptionPage();
|
||||
|
||||
}
|
||||
*/
|
||||
app.UseMiddleware<ErrorHandlerMiddleware>(); // use this exception
|
||||
|
||||
app.UseSwagger();
|
||||
|
||||
app.UseSwaggerUI(c =>
|
||||
{
|
||||
c.DocExpansion(Swashbuckle.AspNetCore.SwaggerUI.DocExpansion.None);
|
||||
@@ -133,9 +134,8 @@ namespace CarParkValidationAPI
|
||||
|
||||
/* if add angular under wwwroot then two line below needed*/
|
||||
/***************************/
|
||||
// app.UseDefaultFiles(); //it will use index.html <------------------
|
||||
// app.UseStaticFiles(); //it for angular <-------------------------
|
||||
|
||||
// app.UseDefaultFiles(); //it will use index.html <------------------
|
||||
// app.UseStaticFiles(); //it for angular <-------------------------
|
||||
/***************************/
|
||||
|
||||
app.UseEndpoints(endpoints =>
|
||||
|
||||
Reference in New Issue
Block a user