I have a client and server asp .net app
The client has a form to put some data like name, email phone number. When client press Submit then this data are being sent to the server, and the server returns to controller byte array formatted for xls file. And my question is how to allow the client to download this byte array?
public async Task<> GenerateFile(ExampleModelForm query)
{
byte[] result = await _proxyclient.getfile(query);
}
in 'result' I have this byte[] array, how return it to the client and allow to download?