ahmed elbarbary

ahmed elbarbary

  • NA
  • 1.6k
  • 281.4k

How to rewrite Web Api with best practice and best performance?

Aug 28 2021 3:06 PM

I work on asp.net core 2.2 web API using C# language

I need to rewrite function below with best syntax and with best practice

web API below get Excel file from upload and return Excel file

it working without any issue but I need to rewrite it with best syntax and practice

some points I need to changes :

concatenate path is best thing using

are streaming using correctly

are memory copying file is correct

 


Attachment: csharp_code.zip