I've already made a stored procedure and I've called it in Controller, then the next problem is when I called this method below in view class I got error, anyone can help ?
public ListResponse<ViewStoredGraphRow> GetDataGraph()
{
using (var connection = SqlConnections.NewFor<TryGraphRow>())
{
var data = connection.Query<Item>("StoreGraph",
param: new
{
StartDate = 2018 - 07 - 07,
EndDate = 2018 - 07 - 09
},
commandType: System.Data.CommandType.StoredProcedure);
TestPesan tp = new TestPesan();
var response = new ListResponse<ViewStoredGraphRow>();
response.Entities = (List<ViewStoredGraphRow>)data;
return response;
}
}
and this is my error
Thanks!

newkeyword). You can declare another class and putGetDataGraph()method there.