/// <summary>
        /// Delete a Seciurity
        /// </summary>
        /// <returns>True for sucess</returns>
        public override ErrorCode Delete(Security record)
        {
            DataModel dataModel = new DataModel();

            if (record.RowId == null || DataModel.Security.SecurityKey.Find(record.RowId) == null)
            {
                return(ErrorCode.RecordNotFound);
            }

            dataModel.DestroySecurity(
                record.RowVersion,
                new object[] { record.RowId });

            return(ErrorCode.Success);
        }