public DataAccessLayer.SOAResult Delete (ref BusinessLayer.User user) { DataAccessLayer.DAL_Task dal_task = new DataAccessLayer.DAL_Task (); // There must be an ID to delete the Kunde if (ID == null) return DataAccessLayer.SOAResult.FALSE; if (dal_task.DeleteTask(this, ref user) == DataAccessLayer.SOAResult.TRUE) { // clear the values of the Kunde ID = ""; Typ = ""; Art = ""; Status = ""; Adr_Id = ""; Datum = ""; Zeit = ""; Mitarbeiter = ""; Abteilung = ""; Ansprechpartner = ""; Memo = ""; AnsprechpartnerID = ""; Datum_Save = ""; User_Save = ""; User_Close= ""; Datum_Edit = ""; Datum_Close = ""; Time_Close = ""; Time_TelStart = ""; Time_TelDauer = ""; return DataAccessLayer.SOAResult.TRUE; } else { return DataAccessLayer.SOAResult.FALSE; } }