public ActionResult Ubicacion(string pagina, string nro, string aseguradoIDs)
        {
            int comprobacion;

            if (aseguradoIDs != "")
            {
                if (int.TryParse(aseguradoIDs, out comprobacion))
                {
                    if (comprobacion > 0)
                    {
                        Session["AseguradoID"] = comprobacion;
                    }
                }
            }



            int aseguradoID;
            int nroUbicacion;

            ViewBag.TipoConstIncendioList  = new SelectList(_CatalogoService.AllTipoConstructivoIncendios(), "TipoConstructivoIncendioID", "Descripcion");
            ViewBag.TipoConstTerremotoList = new SelectList(_CatalogoService.AllTipoConstructivoTerremotos(), "TipoConstructivoTerremotoID", "NombreCompleto");
            ViewBag.ZonaHidroList          = new SelectList(_CatalogoService.AllZonaHidros(), "ZonaHidroID", "nombre");
            ViewBag.ZonaTEVList            = new SelectList(_CatalogoService.AllZonaTEVs(), "ZonaTEVID", "nombre");
            ViewBag.SICDivisionList        = _CatalogoService.AllSICDivisiones();
            ViewBag.Error        = false;
            ViewBag.NroRegistros = 0;

            //string id = Session["AseguradoID"];

            //if (Int32.TryParse(id, out aseguradoID))
            if (Session["AseguradoID"] != null)
            {
                aseguradoID = Convert.ToInt16(Session["AseguradoID"]); // (int)Session["AseguradoID"];
                List <Ubicacion> lista;

                if (Int32.TryParse(nro, out nroUbicacion))
                {
                    lista = _AseguradoService.FindUbicacionbyNroUbic(aseguradoID, nroUbicacion);
                }
                else
                {
                    lista = _AseguradoService.FindUbicaciones(aseguradoID, pagina, 3);
                }

                fill(lista, aseguradoID, pagina);

                ViewBag.NroRegistros = lista.Where(p => p.Mostrar).ToList().Count;

                return(View(lista));
            }
            return(View());
        }
        private void FillRiskReport(Cotizacion cot)
        {
            if (cot == null)
            {
                return;
            }

            if (cot.bk_te_LazCasualty != null)
            {
                cot.bk_te_LazCasualty.RetroactiveList   = new SelectList(_CatalogoService.AllTableData((int)enumTable.RRRetroactive), "Value", "Label");
                cot.bk_te_LazCasualty.TriggerList       = new SelectList(_CatalogoService.AllTableData((int)enumTable.RRTrigger), "Value", "Label");
                cot.bk_te_LazCasualty.TypeOcurrencyList = new SelectList(_CatalogoService.AllTableData((int)enumTable.RRTypeOcurrency), "Value", "Label");
            }

            if (cot.bk_te_IncCOPE != null)
            {
                //ViewBag.ISOList = new SelectList(_CatalogoService.AllTableData((int)enumTable.RRISO), "Value", "Label");
                ViewBag.ISOList = _CatalogoService.AllTableData((int)enumTable.RRISO);
                //ViewBag.ExposicionList = new SelectList(_CatalogoService.AllExposiciones(), "ExposicionID", "nombre");
                ViewBag.ExposicionList = _CatalogoService.AllExposiciones();
            }

            if (cot.bk_te_IncASAreaFuego != null)
            {
                //ViewBag.TipoConstIncendioList = new SelectList(_CatalogoService.AllTipoConstructivoIncendios(), "TipoConstructivoIncendioID", "Descripcion");
                ViewBag.TipoConstIncendioList = _CatalogoService.AllTipoConstructivoIncendios();
                ViewBag.SICDivisionList       = _CatalogoService.AllSICDivisiones();
            }
        }