// // GET: /GestionGeneral/Create public ActionResult Buscar(Solicitudes solicitudes) { ManagerUser mang = new ManagerUser(); Solicitudes _solicitudes = new Solicitudes(); _solicitudes.ListSolicitudes = new List <Solicitudes>(); var ret = mang.ConsultarSolicitudGestionGeneral(solicitudes); if (ret.Any()) { _solicitudes.ListSolicitudes = ret; _solicitudes.IdAgente = Convert.ToInt32(Session["ROLID"].ToString()); } return(Json(_solicitudes, JsonRequestBehavior.AllowGet)); }