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