If so, how can I call it from my View?
The controller action that I have in mind is something like this:
public ActionResult UrunYonetimi<T>(int param = 0)
{
// doing stuff
}
Can we have an action like this? If so, how can I specify that T
from my e.g @Url.Action()
call?
I think I've come to an understanding for this issue:
I guess we need to declare our nice generic functions in the model rather than in the controller, and handle different types from there. We can and probably should have different actions and thus different URLs for every model type, but they will all call the same function from the model, only with different types.