/// <summary> /// Method to Get List of All Kolej /// </summary> /// <param name="argEn">Kolej Entity is an Input.</param> /// <returns>Returns List of Kolej</returns> public List <KolejEn> GetKolejList(KolejEn argEn) { try { KolejDAL loDs = new KolejDAL(); return(loDs.GetKolejList(argEn)); } catch (Exception ex) { throw ex; } }
/// <summary> /// Method to Get Kolej Entity /// </summary> /// <param name="argEn">Kolej Entity is an Input.SAKO_Code as Input Property.</param> /// <returns>Returns Kolej Entity</returns> public KolejEn GetItem(KolejEn argEn) { try { KolejDAL loDs = new KolejDAL(); return(loDs.GetItem(argEn)); } catch (Exception ex) { throw ex; } }
/// <summary> /// Method to Delete Kolej /// </summary> /// <param name="argEn">Kolej Entity is an Input.</param> /// <returns>Returns Boolean</returns> public bool Delete(KolejEn argEn) { bool flag; using (TransactionScope ts = new TransactionScope()) { try { KolejDAL loDs = new KolejDAL(); flag = loDs.Delete(argEn); ts.Complete(); } catch (Exception ex) { throw ex; } } return(flag); }