How can I call a generic WebAPI action from JavaScript? and pass the T
type.
public class ClassUtilitiesController : ApiController
{
[HttpPost]
public string GetClassNamespace<T>()
{
return typeof(T).FullName;
}
}
I need an action that returns something from input T
type. What should I do
Aucun commentaire:
Enregistrer un commentaire