public UserController() { _repo = new UserRepository(); profesionList = new ProfesionRepository(); }
/// <summary> /// Autocomplete method for Profesions list /// </summary> /// <param name="q"></param> /// <param name="limit"></param> /// <returns></returns> public ActionResult AutoCompleteProfesion(string q, int limit) { var repository = new ProfesionRepository(); return(Json(repository.GetProfesiones(q))); }