Example #1
0
 public static void DeleteRecord(long id, Type recordType)
 {
     DataLayer temp = new DataLayer();
     String type = recordType.ToString();
     temp.DeleteRecord(id, type.Substring(type.LastIndexOf(".") + 1, (type.Length - (type.LastIndexOf(".") + 1))));
 }
Example #2
0
 public static void DeleteRecord(Record record)
 {
     DataLayer dl = new DataLayer();
     String type = record.GetType().ToString();
     dl.DeleteRecord(Utilities.ToLong(record.RecordId), type.Substring(type.LastIndexOf(".") + 1, (type.Length - (type.LastIndexOf(".") + 1))));
 }