Example #1
0
 public UserController()
 {
     _repo         = new UserRepository();
     profesionList = new ProfesionRepository();
 }
Example #2
0
        /// <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)));
        }