SHARE
TWEET

Untitled

a guest Mar 19th, 2019 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var serviceResponse = await services.GetProfileRepositoryAsync(requestDto, token);
  2.                 if(requestDto.IsExportable)
  3.                 {
  4.                     MemoryStream stream = new MemoryStream();
  5.                     StreamWriter writer = new StreamWriter(stream);
  6.                     **writer.Write((serviceResponse.dto.NewSoftwareFileDto));**
  7.                     writer.Flush();
  8.                     stream.Position = 0;
  9.                     return File(stream, "text/csv", "filesname.csv");
  10.                 }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top