public IHttpActionResult DeleteOrg([FromBody] int orgInfoId, [UserProfile] UserProfile userProfile) { var orgInfo = _orgServiceService.Get(orgInfoId); var t = CheckAndReturnMsg(orgInfo, userProfile); if (!String.IsNullOrEmpty(t)) { return(BadRequest(t)); } return(DoFunction(() => { bool bl = _orgServiceService.DeleteById(orgInfoId); return bl; }, "删除组织机构失败")); }