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