forked from MDCPS/DamageAssessment_Backend
Update SeedData to be executed when MS launched, Enable other properties in SurveyResponse
This commit is contained in:
@ -34,6 +34,13 @@ if (app.Environment.IsDevelopment())
|
||||
{
|
||||
app.UseSwagger();
|
||||
app.UseSwaggerUI();
|
||||
|
||||
using (var serviceScope = app.Services.CreateScope())
|
||||
{
|
||||
var services = serviceScope.ServiceProvider;
|
||||
var employeesProvider = services.GetRequiredService<IEmployeesProvider>();
|
||||
employeesProvider.SeedData();
|
||||
}
|
||||
}
|
||||
|
||||
app.UseAuthorization();
|
||||
|
Reference in New Issue
Block a user