getting this error:
The best overloaded method match for 'System.Web.Helpers.WebGrid.WebGrid(System.Collections.Generic.IEnumerable<object>, System.Collections.Generic.IEnumerable<string>, string, int, bool, bool, string, string, string, string, string, string, string)' has some invalid arguments
i am trying this code
public ActionResult Generated_PaySlip(int? emplID, String month)
{
var PaySlip = DataContext.GetMonthlyReport(emplID, month).SingleOrDefault();
return View(PaySlip);
}
VIEW:
@using EmployeeAttendance_app.Models
<h2>Employee Pay Slip</h2>
@{
var grid = new WebGrid(ViewData.Model, rowsPerPage: 20);
}
@grid.GetHtml();