From 3e8e8c019d6b52512a6db29019ebf460ef1d5163 Mon Sep 17 00:00:00 2001 From: Alper Ebicoglu Date: Wed, 7 Oct 2020 09:16:02 +0300 Subject: [PATCH] Update Application-Services.md --- docs/en/Best-Practices/Application-Services.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/en/Best-Practices/Application-Services.md b/docs/en/Best-Practices/Application-Services.md index b14770d654..ff8afe81d2 100644 --- a/docs/en/Best-Practices/Application-Services.md +++ b/docs/en/Best-Practices/Application-Services.md @@ -215,9 +215,8 @@ This method votes a question and returns the current score of the question. #### Handle files -* **Do not** use any file-related components(like `IFormFile`) or `Stream` in the application service interface. You can use primitive types as file parameters. Such as `byte[]`. -* **Do** use a controller to handle file upload and call a application service method. - +* **Do not** use any web components like `IFormFile` or `Stream` in the application services. If you want to serve a file you can use `byte[]`. +* **Do** use a `Controller` to handle file uploading then pass the `byte[]` of the file to the application service method. #### Using Other Application Services