I am trying to use this stored procedure below to create a list which I can then export as an Excel file. I have been using Entity Framework thus far, but I am unsure how to go about this in my controller:
CREATE PROCEDURE [dbo].[spFlugReport]
(
@AccNo INTEGER,
@DateFrom DATE,
@DateTo DATE
)
AS
BEGIN
SELECT *
FROM [dbo].[KIRData]
WHERE AccNo = @AccNo
AND StartDate >= @DateFrom
AND EndDate <= @DateTo
AND Prod = 'Air'
END