added active and historical end points in response service

This commit is contained in:
uppuv
2023-10-17 11:22:49 -04:00
parent 027097d12d
commit bbe8008fc2
6 changed files with 28 additions and 26 deletions

View File

@ -93,8 +93,8 @@ namespace DamageAssesment.Api.Surveys.Providers
try
{
logger?.LogInformation("Get all Surveys from DB");
var surveys = await surveyDbContext.Surveys.Where(s => s.IsEnabled == true).ToListAsync();
//checking is enabled in survey response
var surveys = await surveyDbContext.Surveys.ToListAsync();//Where(s => s.IsEnabled == true)
if (surveys != null)
{
surveysList = from s in surveys