From 2da7349578a371568512f0d1cb1c7581afa3e31e Mon Sep 17 00:00:00 2001 From: maxchil Date: Mon, 26 Oct 2020 12:13:23 +0100 Subject: [PATCH] fix (#70) fix Co-authored-by: MaxchilKH --- src/InternshipSystem.Api/Controllers/DocumentsController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/InternshipSystem.Api/Controllers/DocumentsController.cs b/src/InternshipSystem.Api/Controllers/DocumentsController.cs index 4487b0a..92c5a8b 100644 --- a/src/InternshipSystem.Api/Controllers/DocumentsController.cs +++ b/src/InternshipSystem.Api/Controllers/DocumentsController.cs @@ -75,7 +75,7 @@ namespace InternshipSystem.Api.Controllers return BadRequest(e.Message); } - return Ok(); + return Ok(internship.Documentation.First(d => d.Type == documentRequest.Type)); } [HttpPut("{documentId}/scan")]