public ActionResult BNMst(tbl_MasterBINList obj, string hid)
 {
     if (Session["User"] == null)
     {
         return(RedirectToAction("LogIn", "LogIn"));
     }
     if (((tbl_UserDetail)Session["User"]).GroupPages.Contains("BinList"))
     {
         try
         {
             new MvcHelper((tbl_UserDetail)Session["User"]);
             if (string.IsNullOrEmpty(hid))
             {
                 MvcHelper.SaveMasterBINList(obj);
             }
             else
             {
                 MvcHelper.EditMasterBINList(obj, Convert.ToInt64(hid));
             }
             TempData["Success"] = "Data saved successfully.";
         }
         catch (Exception ex)
         {
             TempData["Error"] = "Something went wrong.";
         }
         return(RedirectToAction("BNMst"));
     }
     else
     {
         return(RedirectToAction("Error", "ErrorPage"));
     }
 }