public JObject Del(string id) { DataResult result = new DataResult() { Verifiaction = false }; try { if (!string.IsNullOrEmpty(id)) { _rolesRepsonsityService.Delete(id.Trim()); result.Verifiaction = true; result.Message = "删除成功!"; } else { result.Message = "删除失败!"; } } finally { } return(JObject.FromObject(result)); }
public string RolesTest1(string id) { try { RolesEntity rolesEntity = new RolesEntity(); _rolesRepsonsityService.Delete(id); _rolesRepsonsityService.SaveChange(); } catch (Exception ex) { } return("成功"); }