public void update() { ProjectDAC projectDAC = new ProjectDAC(); projectDAC.updateProject(this); }
public void delete() { ProjectDAC projectDAC = new ProjectDAC(); projectDAC.deleteProject(code); }
/// <summary> /// Last Code Getter. /// Gets the last created project code. /// </summary> /// <returns>The last project code.</returns> public int getLastCode() { ProjectDAC projectDAC = new ProjectDAC(); return projectDAC.lastCode(); }
/* ****************************************************************** */ /* Methods */ /* ****************************************************************** */ public void create() { ProjectDAC projectDAC = new ProjectDAC(); projectDAC.insertProject(this); }
/// <summary> /// By Code Fetcher. /// Uses the data access component to fetch a determined /// project from the database using the code of the /// current project. /// </summary> /// <returns>The fetched project.</returns> public ProjectBE getByCode() { ProjectDAC projectDAC = new ProjectDAC(); return projectDAC.getProject(this.code); }