/// <summary> /// Delete Negotiation record /// </summary> /// <param name="record"></param> /// <returns></returns> public override ErrorCode Delete(FluidTrade.Guardian.Records.Negotiation record) { DataModel dataModel = new DataModel(); if (record.RowId == null || DataModel.Negotiation.NegotiationKey.Find(record.RowId) == null) { return(ErrorCode.RecordNotFound); } dataModel.DestroyNegotiation( new object[] { record.RowId }, record.RowVersion); return(ErrorCode.Success); }