forked from MDCPS/DamageAssessment_Backend
		
	Seed data commented for Attachments and SurveyResponse
This commit is contained in:
		| @ -35,12 +35,12 @@ var app = builder.Build(); | ||||
| // Configure the HTTP request pipeline. | ||||
| if (app.Environment.IsDevelopment()) | ||||
| { | ||||
|     using (var serviceScope = app.Services.CreateScope()) | ||||
|     { | ||||
|         var services = serviceScope.ServiceProvider; | ||||
|         var answerProvider = services.GetRequiredService<IAnswersProvider>(); | ||||
|         answerProvider.SeedData(); | ||||
|     } | ||||
|     //using (var serviceScope = app.Services.CreateScope()) | ||||
|     //{ | ||||
|     //    var services = serviceScope.ServiceProvider; | ||||
|     //    var answerProvider = services.GetRequiredService<IAnswersProvider>(); | ||||
|     //    answerProvider.SeedData(); | ||||
|     //} | ||||
|     app.UseSwagger(); | ||||
|     app.UseSwaggerUI( | ||||
|         options => | ||||
|  | ||||
| @ -13,5 +13,6 @@ namespace DamageAssesment.Api.Attachments.Interfaces | ||||
|         Task<(bool IsSuccess, int counter, string Path)> DeleteBulkAttachmentsAsync(int responseId, List<int> answerIds); | ||||
|         Task<(bool IsSuccess, int counter, string message)> GetAttachmentCounter(); | ||||
|         Task<(bool IsSuccess, IEnumerable<Models.Attachment> Attachments, string ErrorMessage)> GetAttachmentInfo(List<AnswerInfo> answers); | ||||
|         | ||||
|     } | ||||
| } | ||||
|  | ||||
| @ -21,7 +21,7 @@ namespace DamageAssesment.Api.Attachments.Providers | ||||
|             this.logger = logger; | ||||
|             this.mapper = mapper; | ||||
|             this.uploadservice = uploadservice; | ||||
|             SeedData(); | ||||
|            // SeedData(); | ||||
|         } | ||||
|         public async Task<(bool IsSuccess, IEnumerable<Models.Attachment> Attachments, string ErrorMessage)> GetAttachmentsAsync() | ||||
|         { | ||||
|  | ||||
| @ -38,7 +38,7 @@ namespace DamageAssesment.Api.SurveyResponses.Controllers | ||||
|         /// GET request for retrieving survey responses by survey ID. | ||||
|         /// </summary> | ||||
|         | ||||
|         [HttpGet("{surveyId}")] | ||||
|         [HttpGet("surveys/{surveyId}")] | ||||
|         public async Task<ActionResult> GetSurveyResponsesAsync(int surveyId) | ||||
|         { | ||||
|             var result = await this.surveyResponseProvider.GetSurveyResponsesBySurveyAsync(surveyId); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user