public static string Delete(int id) { DClient Obj = new DClient(); Obj.Id = id; return(Obj.Delete(Obj)); }
public void Delete(EClient eClient) { dClient.Delete(eClient); if (dClient.ExistsReference()) { Message = string.Format("El Cliente '{0}' tiene referencias en el Sistema, no se puede eliminar el registro.", eClient.SearchName); throw new Exception(Message); } eClient.Audit.TypeEvent = "Delete"; bAudit.Insert(eClient.Audit); }