public JsonResult SaveAccessPermission(AccessPermisionTreeViewModel obj) { var objeTracLoginModel = new eTracLoginModel(); bool isSaved = false; try { if (Session != null) { if (Session["eTrac"] != null) { objeTracLoginModel = (eTracLoginModel)(Session["eTrac"]); if (Convert.ToInt64(Session["eTrac_SelectedDasboardLocationID"]) == 0) { (Session["eTrac_SelectedDasboardLocationID"]) = objeTracLoginModel.LocationID; } } } if (obj != null) { isSaved = _IAdminDashboard.SaceAccessPermission(obj); } } catch (Exception ex) { return(Json(ex.Message, JsonRequestBehavior.AllowGet)); } return(this.Json(isSaved, JsonRequestBehavior.AllowGet)); }
public bool SaceAccessPermission(AccessPermisionTreeViewModel obj) { var _VSCRepository = new VehicleSeatingChartRepository(); bool isSaved = false; try { if (obj != null) { if (obj.id > 0) { } else { } } } catch (Exception ex) { Exception_B.Exception_B.exceptionHandel_Runtime(ex, "public bool SaceAccessPermission(AccessPermisionTreeViewModel obj)", "Exception While saving access permission", obj); throw; } return(isSaved); }