RotativaConfiguration.Setup(env.WebRootPath);
/// <summary>
/// Method to return PDF to the view
/// </summary>
/// <returns>PDF file</returns>
public IActionResult Index()
{
return new Rotativa.AspNetCore.ViewAsPdf("Index", GetStudents()); // Index view name , GetStudents() data as Model
//return View();
}