/// <summary> /// 删除 /// </summary> /// <param name="oid">主键</param> /// <returns></returns> public int Delete(Guid oid) { KeyValueP entity = new KeyValueP(); entity.ID = oid; return(entity.Delete()); }
public AjaxResult Delete(KeyValueP entity) { entity.Delete(); return(new AjaxResult(ResultStatus.OK) { Status = ResultStatus.OK }); }