Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

70
Views
Llame al método genérico con el tipo de javascript usando ajax

Parece que no puedo encontrar ningún ejemplo sobre cómo llamar al método genérico con el tipo de javascript usando ajax

 public virtual JsonResult GetData<T>(SomeClass firstParam) where T : class, ISomeInterface { ... }

llamar con ajax

 ... ajax: { url: "@Url.Action("GetData", "Controller")", type: "POST", }, ...

Edición 1: solo para aclarar el informe duplicado. Estoy tratando de llamar al método genérico, no al controlador, así que algo como esto

 ... ajax: { url: "@Url.Action<SomeClass>("GetData", "Controller")", type: "POST", }, ...
about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!