I am wanting to perform an asynchronous method but I have the problem that, although it is performed asynchronously, it does not return the value until it does not end. I need you to return your sight and continue even if the task is not finished
Thread oThread = new Thread(ProtocolizacionS.ActualizarProtocolizados);
oThread.IsBackground = true;
//// Start the thread
oThread.Start();
//while (!oThread.IsAlive) ;
var devuelta = Proyecto.ListadoVista(user.Login, programaCodigo, expedienteNro, expedienteAno, beneficiario, estadoCodigo, titulo);
return Json(devuelta, JsonRequestBehavior.AllowGet);