Beispiel #1
0
        public ActionResult Get(int Id_Rol, string partial_view)
        {
            ReferenciasTipoManager manager = new ReferenciasTipoManager();
            var result = manager.Get(Id_Rol);

            return(PartialView(partial_view, result));
        }
Beispiel #2
0
        //
        // GET: /ReferenceTipos/
        public ActionResult Manage()
        {
            bussinessInfo();
            ReferenciasTipoManager manager = new ReferenciasTipoManager();
            var result = manager.Get();

            return(View(result));
        }
Beispiel #3
0
        public ActionResult GetAll(string partial_view)
        {
            ReferenciasTipoManager manager = new ReferenciasTipoManager();
            var result = manager.Get();

            if (string.IsNullOrEmpty(partial_view))
            {
                return(View(result));
            }
            return(PartialView(partial_view, result));
        }
Beispiel #4
0
        protected IEnumerable <SelectListItem> GetDrpRelacion()
        {
            List <SelectListItem> ls = new List <SelectListItem>();

            try
            {
                ReferenciasTipoManager _man = new ReferenciasTipoManager();

                var result = _man.Get();
                foreach (var temp in result)
                {
                    ls.Add(new SelectListItem()
                    {
                        Text = temp.Tipo_Referencia_Desc.ToString(), Value = temp.Tipo_Referencia_Id.ToString()
                    });
                }
            }
            catch (Exception ex)
            {
                ViewBag.Error = ex.Message.ToString();
            }
            return(ls);
        }