public ActionResult Create(AddrBk_PhysicalActivity addrbk_physicalactivity, Guid organizationId, String orgName)
        {
            try
            {
                addrbk_physicalactivity.Id = Guid.NewGuid();
                addrbk_physicalactivity.CreatedDt = addrbk_physicalactivity.LastUpdatedDt = DateTime.Now;
                addrbk_physicalactivity.ActiveRec = true;
                addrbk_physicalactivity.IndivID = organizationId;

                db.AddrBk_PhysicalActivity.Add(addrbk_physicalactivity);
                db.SaveChanges();

                return RedirectToAction("Index", new { organizationId = organizationId, orgName = orgName });
            }
            catch
            {
                ModelState.AddModelError(String.Empty, Utils.errorMsg);
            }

            ViewBag.orgName = orgName;
            ViewBag.organizationId = organizationId;
            ViewBag.MainTitle = Utils.AddrBkPhysicalActivity + " / " + orgName;
            ViewBag.PhyActiv_LCID = new SelectList(db.Lookup_AddrBk.Where(a => a.ActiveRec == true && a.TblColSel == Utils.AB_PhysicalActivity), "Id", "Title", addrbk_physicalactivity.PhyActiv_LCID);
            return PartialView("_Create", addrbk_physicalactivity);
        }
        //
        // GET: /AddrBkPhysicalActivity/Create
        public ActionResult Create(Guid organizationId, String orgName)
        {
            ViewBag.orgName = orgName;
            ViewBag.organizationId = organizationId;
            ViewBag.MainTitle = Utils.AddrBkPhysicalActivity + " / " + orgName;
            ViewBag.PhyActiv_LCID = new SelectList(db.Lookup_AddrBk.Where(a => a.ActiveRec == true && a.TblColSel == Utils.AB_PhysicalActivity), "Id", "Title");

            AddrBk_PhysicalActivity addrbk_physicalactivity = new AddrBk_PhysicalActivity();
            addrbk_physicalactivity.EffDt = DateTime.Now;
            return PartialView("_Create", addrbk_physicalactivity);
        }
        public ActionResult Edit(AddrBk_PhysicalActivity addrbk_physicalactivity, Guid organizationId, String orgName)
        {
            try
            {
                addrbk_physicalactivity.LastUpdatedDt = DateTime.Now;
                db.Entry(addrbk_physicalactivity).State = EntityState.Modified;
                db.SaveChanges();

                return RedirectToAction("Index", new { organizationId = organizationId, orgName = orgName });
            }
            catch (DbUpdateConcurrencyException ex)
            {
                var entry = ex.Entries.Single();
                var databaseValues = (AddrBk_PhysicalActivity)entry.GetDatabaseValues().ToObject();
                ModelState.AddModelError(string.Empty, Utils.concurrencyMsg);
                addrbk_physicalactivity.Concurrency = databaseValues.Concurrency;
            }
            catch
            {
                ModelState.AddModelError(String.Empty, Utils.errorMsg);
            }

            ViewBag.orgName = orgName;
            ViewBag.organizationId = organizationId;
            ViewBag.MainTitle = Utils.AddrBkPhysicalActivity + " / " + orgName + " / " + Utils.GetPhysicalActivityFromId(addrbk_physicalactivity.PhyActiv_LCID);
            ViewBag.PhyActiv_LCID = new SelectList(db.Lookup_AddrBk.Where(a => a.ActiveRec == true && a.TblColSel == Utils.AB_PhysicalActivity), "Id", "Title", addrbk_physicalactivity.PhyActiv_LCID);
            return PartialView("_Edit", addrbk_physicalactivity);
        }