public ActionResult RefreshData() { try { this.CAT_TipoDirectorioProxy = new ADESCOMBUSINESS.Areas.Configuracion.Methods.CAT_TipoDirectorioBusiness((ADESCOMBUSINESS.DataAccess.Models.LoginRS)Session["InfoUser"]); } catch (Exception ex) { return(RedirectToAction("SesionExpired", "Inicio", new { Area = "", Mensaje = ex.Message })); } List <ADESCOMBUSINESS.Areas.Configuracion.Models.VwCAT_TipoDirectorio> Lista = new List <ADESCOMBUSINESS.Areas.Configuracion.Models.VwCAT_TipoDirectorio>(); Lista = CAT_TipoDirectorioProxy.GetActive(0); return(View(Lista)); }
private List <ADESCOMBUSINESS.Areas.Configuracion.Models.VwCAT_TipoDirectorio> GetTipoDirectorio(int TipoDirectorio_ID) { ADESCOMBUSINESS.Areas.Configuracion.Methods.CAT_TipoDirectorioBusiness TipoDirectorioProxy = new ADESCOMBUSINESS.Areas.Configuracion.Methods.CAT_TipoDirectorioBusiness((ADESCOMBUSINESS.DataAccess.Models.LoginRS)Session["InfoUser"]); List <ADESCOMBUSINESS.Areas.Configuracion.Models.VwCAT_TipoDirectorio> TDirectorio = new List <ADESCOMBUSINESS.Areas.Configuracion.Models.VwCAT_TipoDirectorio>(); TDirectorio.Add(new ADESCOMBUSINESS.Areas.Configuracion.Models.VwCAT_TipoDirectorio() { TipoDirectorio_ID = 0, TDI_Descripcion = "Elija Una Opcion" }); TDirectorio.AddRange(TipoDirectorioProxy.GetActive(TipoDirectorio_ID)); return(TDirectorio); }