I am calling a function to return an Excel file and it is not opening in Excel, instead it is opening another tab in the browser. Here is my view:
@model Inven
Check your default program for opening csv files and set it to Excel.