I have a small problem and I find a solution.
I have to take the name of a person and with the name of the school
DB_Entities db = new DB_Entities(); // es generada por el Entitie framework
public JsonResult GetPersona(string codPersona)
{
int id = Convert.ToInt32(codPersona);
var persona = (from pe in db.Persona
join co in db.Colegio on pe.CodColegio equals co.IdColegio
where pe.CodPersona == id
select new
{
NombreCompleto = pe.NombreCompleto,
Colegio = co.Nombre
}).FirstOrDefault();
return new JsonResult { Data = persona, JsonRequestBehavior = JsonRequestBehavior.AllowGet };
}