From 8a2878481a10889832426b0f9f218520700beb21 Mon Sep 17 00:00:00 2001
From: MaxchilKH <m.w.bohdanowicz@gmail.com>
Date: Mon, 26 Oct 2020 12:13:05 +0100
Subject: [PATCH] fix

---
 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")]