I have a cshtml file which is reading 2 variables I'm sending it.
It works fine with sending the parameters using ViewDataDictionary from another view using @HTML.Partial. But I am getting 500 errors when I am trying to send the same type of arguments through my function bellow
public ActionResult Refresh(string id){
return PartialView(page,new ViewDataDictionary { { "points" , get_points(id)) } });
}
My @HTML.Partial looks the sameway, the only thing that is different is the PartialView. I have verified in the debugger that my parameters have the same look.
Why is PartialView generating 500 errors and Partial is not?