/// <summary> /// Delete a Province /// </summary> /// <returns>True for sucess</returns> public override ErrorCode Delete(Report record) { DataModel dataModel = new DataModel(); if (record.RowId == null || DataModel.Report.ReportKey.Find(record.RowId) == null) { return(ErrorCode.RecordNotFound); } dataModel.DestroyReport( new object[] { record.RowId }, record.RowVersion); return(ErrorCode.Success); }