public void InsertProgram(DataModel.Program prgm) { ProgramBll prgramBll = new ProgramBll(); int resul = prgramBll.InsertProgram(prgm); if (resul > 0) { MessageBox.Show("Successfully saved."); ClearProgram(prgm); } }
public IEnumerable <DataModel.Program> GetAllPrograms() { ProgramBll programBll = new ProgramBll(); return(programBll.RetrieveAllPrograms()); }