delete share ui
This commit is contained in:
@@ -94,8 +94,7 @@ services.AddScoped<IMotorVehicles, MotorVehiclesRepository>();
|
||||
#region app
|
||||
var app = builder.Build();
|
||||
|
||||
|
||||
using (var scope = app.Services.CreateScope())
|
||||
using (IServiceScope scope = app.Services.CreateScope())
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -103,7 +102,6 @@ using (var scope = app.Services.CreateScope())
|
||||
var db = context.Database;
|
||||
if (db != null)
|
||||
{
|
||||
|
||||
try
|
||||
{
|
||||
using var cts = new CancellationTokenSource();
|
||||
@@ -132,20 +130,15 @@ using (var scope = app.Services.CreateScope())
|
||||
{
|
||||
//continue
|
||||
}
|
||||
|
||||
}
|
||||
id = staff.InsertOneUser();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Console.WriteLine(e.ToString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user