public ActionResult AddRolesEventsAccess(EventPermissionModel model) { actionResult = new ActionResult(); try { actionResult.dtResult = EventDL.AddRolesEventsAccess(model); if (actionResult.dtResult != null && actionResult.dtResult.Rows.Count > 0) { actionResult.IsSuccess = true; } } catch (Exception ex) { } return(actionResult); }