Example #1
0
        public JsonResult Del(string ids, string opType = "")
        {
            string result = "失败";
            bool   isOk   = false;

            switch (opType)
            {
            case "person":
                isOk = _iCrmService.DelPersonuser(ids);
                break;

            case "company":
                isOk = _iCrmService.DelCompany(ids);
                break;

            default:
                break;
            }
            if (isOk)
            {
                result = "成功";
            }
            return(Json(new { success = "" + (isOk ? "ok" : "no") + "", info = "" + result.ToString() + "" }));
        }