I have an action in controller that returns :
 return this.File(stream.GetBuffer(), "text/plain", "file.csv");
and in my view i got the data using ajax but i dont know how to download the file :
                   $.ajax({       
                    url: '@Url.Action("TelechargerFic")',
                    data: { 
                        id: id,
                        etat: etat 
                    },
                    datatype: "json",
                    type: "POST" ,
                    success: function (data) {
                   
                   // Here 
                   }
any ideas ?
