public ActionResult MapsViewTab(int PermitKey) { MapsVM model = new MapsVM() { PermitKey = PermitKey }; model.PermitMaps = MapBLL.GetMaps(PermitKey); model.PermitLayers = new MapLayersVM(MapBLL.GetAllLayers(PermitKey)) { MapAttachmentId = -1, MapAttachmentName = "Permit" }; ViewBag.TOCID = 96; // maps page TOCID return PartialView(model); }
/// <summary> /// Returns the maps page and displays the layers for the permit /// </summary> /// <param name="PermitKey"></param> /// <returns></returns> public ActionResult Maps(int PermitKey) { MapsVM model = new MapsVM() { PermitKey = PermitKey }; model.PermitMaps = MapBLL.GetMaps(PermitKey); model.MasterCadAvailable = PermitBLL.GetMasterCAD(PermitKey); model.PermitLayers = new MapLayersVM(MapBLL.GetAllLayers(PermitKey)) { MapAttachmentId = -1, MapAttachmentName = "Permit" }; ViewBag.TOCID = 74; // maps page TOCID return View(model); }