Esempio n. 1
0
        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));
            }
        }