public ActionResult GetTypeAheadAjax(string search) { var exerciseBll = new Domain.BLL.ExerciseBLL(); var loggedUser = Session.GetLoggedUser(); var exercises = exerciseBll.GetExercisesByFilter(loggedUser.PessoaEmpresas, search); var response = exercises.Select(ex => new { description = ex.Nome + " " + (ex.Equipamentos != null ? ex.Equipamentos.Nome : ""), ID = ex.ID }).ToList(); return Json(response, JsonRequestBehavior.AllowGet); }