Problem with JSON in MVC5

0

at the time of writing JsonRequestBehavior.AllowGet I get marked that is badly written or does not exist, in the controller.

    public JsonResult Clases(string valuemarca)
    {
        return Json(obj2.ObtenerVehiculoClaseAsync("", ServicioMVCDatoAuto.TipoVehiculo.Auto, valuemarca), JsonRequestBehavior.AllowGet);
    }
    
asked by Jonathan Gomez 28.08.2018 в 18:01
source

1 answer

-1

I know what happened, in the using I had one that was:

using microsoft.aspcore.mvc;

I took it off and put it on

using system.web.mvc:
    
answered by 28.08.2018 в 21:47