//[HttpPost] //public ActionResult Rol(List<Rol> roles) //{ // if (ModelState.IsValid) // { // //_CotizacionService.SaveValores(ubicaciones, (int)Session["cotizacionID"]); // ViewBag.Mensaje = Resources.Messages.successful_general; // } // return View(roles); //} public JsonResult GetListAcciones(int rolID) { return(this.Json( new { controlador = new SelectList(_AccountService.FindControllerbyRolID(rolID).Select(x => new SelectListItem { Text = x, Value = x }), "Value", "Text"), acciones = Render.RenderRazorViewToString(this, "Templates/Rol", _AccountService.FindAccionesbyRolID(rolID)) } , JsonRequestBehavior.AllowGet)); }