public ActionResult GLAList(tbl_GLAccountList obj, string hid)
        {
            if (Session["User"] == null)
            {
                return(RedirectToAction("LogIn", "LogIn"));
            }
            try
            {
                new MvcHelper((tbl_UserDetail)Session["User"]);
                if (string.IsNullOrEmpty(hid))
                {
                    MvcHelper.SaveGLAccount(obj);
                }
                else
                {
                    MvcHelper.EditGLAccount(obj, Convert.ToInt64(hid));
                }
                TempData["Success"] = "Data saved successfully.";
            }
            catch (Exception ex)
            {
                TempData["Error"] = "Something went wrong.";
            }

            return(RedirectToAction("GLAList"));
        }