public int InsertQualification(TRNEducationLevel objQualification) { objQualification.EducationalLevelID = 1; BeginTransaction(); try { objQualification.EducationalLevelID = Insert(objQualification); CommitTransaction(); } catch (Exception ex) { RollBackTransaction(); objQualification.EducationalLevelID = -1; } return objQualification.EducationalLevelID; }
public int DeleteQualification(TRNEducationLevel objQualification) { int rowsaffected = -1; BeginTransaction(); try { String[] UpdateProperties = new String[] { "Status" }; rowsaffected = Update(objQualification, UpdateProperties); CommitTransaction(); } catch (Exception e) { RollBackTransaction(); rowsaffected = -1; } return rowsaffected; }
public int DeleteQualification(TRNEducationLevel objQualification) { return new TRNEducationLevelDAO().DeleteQualification(objQualification); }
public int InsertQualification(TRNEducationLevel objQualification) { return new TRNEducationLevelDAO().InsertQualification(objQualification); }
public int UpdateQualification(TRNEducationLevel objQualification) { return new TRNEducationLevelDAO().UpdateQualification(objQualification); }
public static TRNEducationLevel GetAll(int EducationLevelID) { TRNEducationLevel objEducationLevel = new TRNEducationLevel(); return (TRNEducationLevel)(new TRNEducationLevelDAO().FillDTO(objEducationLevel, "ID=" + EducationLevelID)); }