public JsonResult GetAddStaffPermission(List <int> ItemSelect, int staffRoleID) { try { StaffData st = new StaffData(); st.AddPermission(ItemSelect, staffRoleID); return(Json(new { data = "", success = true }, JsonRequestBehavior.AllowGet)); } catch (Exception ex) { return(Json(new { data = ex.Message, success = false }, JsonRequestBehavior.AllowGet)); } }