public ActionResult Create(AddrBk_Language addrbk_language, Guid organizationId, String orgName, bool isOrganization = true)
        {
            try
            {
                addrbk_language.ContactBasis_LCID = Utils.GetLookUpBasisId(isOrganization);
                addrbk_language.CreatedDt = addrbk_language.LastUpdatedDt = DateTime.Now;
                addrbk_language.ActiveRec = true;
                addrbk_language.Id = Guid.NewGuid();

                if (isOrganization)
                    addrbk_language.OrgID = organizationId;
                else
                    addrbk_language.IndivID = organizationId;

                db.AddrBk_Language.Add(addrbk_language);
                db.SaveChanges();

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

            ViewBag.isOrganization = Convert.ToString(isOrganization);
            ViewBag.orgName = orgName;
            ViewBag.organizationId = organizationId;
            ViewBag.MainTitle = Utils.AddrBkOrganizationLanguage + " / " + orgName;
            ViewBag.Language_LCID = new SelectList(db.Lookup_Language.Where(e => e.ActiveRec == true), "Id", "Title", addrbk_language.Language_LCID);
            return PartialView("_Create", addrbk_language);
        }
        //
        // GET: /AddrBkLanguage/Create
        public ActionResult Create(Guid organizationId, String orgName, bool isOrganization = true)
        {
            ViewBag.isOrganization = Convert.ToString(isOrganization);
            ViewBag.orgName = orgName;
            ViewBag.organizationId = organizationId;
            ViewBag.MainTitle = Utils.AddrBkOrganizationLanguage + " / " + orgName;
            ViewBag.Language_LCID = new SelectList(db.Lookup_Language.Where(e => e.ActiveRec == true), "Id", "Title");

            var addrbk_language = new AddrBk_Language();
            addrbk_language.EffDt = DateTime.Now;
            return PartialView("_Create", addrbk_language);
        }
        public ActionResult Edit(AddrBk_Language addrbk_language, Guid organizationId, String orgName, bool isOrganization = true)
        {
            try
            {
                addrbk_language.LastUpdatedDt = DateTime.Now;
                db.Entry(addrbk_language).State = EntityState.Modified;
                db.SaveChanges();

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

            ViewBag.isOrganization = Convert.ToString(isOrganization);
            ViewBag.orgName = orgName;
            ViewBag.organizationId = organizationId;
            ViewBag.MainTitle = Utils.AddrBkOrganizationLanguage + " / " + orgName + " / " + Utils.GetLanguageFromId(addrbk_language.Language_LCID);
            ViewBag.Language_LCID = new SelectList(db.Lookup_Language.Where(e => e.ActiveRec == true), "Id", "Title", addrbk_language.Language_LCID);
            return PartialView("_Edit", addrbk_language);
        }