public IHttpActionResult Delete(string Id) { if (string.IsNullOrEmpty(Id)) { return(BadRequest("非法请求!")); } try { HrDictionary model = bll.GetOne(p => p.DICTIONARYID.Equals(Id)); if (model == null) { return(Ok("ok")); } model.IsDeleted = true; bll.Edit(model); return(Ok("ok")); } catch (Exception ex) { LogService.WriteErrorLog("DictionaryManageController[Delete]", ex.ToString()); return(BadRequest("异常!")); } }