/// <summary> /// Method to Get BankProfile Entity /// </summary> /// <param name="argEn">BankProfile Entity is an Input</param> /// <returns>Returns BankProfile Entity</returns> public BankProfileEn GetItem(BankProfileEn argEn) { try { BankProfileDAL loDs = new BankProfileDAL(); return(loDs.GetItem(argEn)); } catch (Exception ex) { throw ex; } }
/// <summary> /// Method to Get List of Active or Inactive BankProfiles /// </summary> /// <param name="argEn">BankProfile Entity is an Input.BankDetailsCode,Description,ACCode,GLCode,Status are Input Properties</param> /// <returns>Returns List of BankProfiles</returns> public List <BankProfileEn> GetBankProfileList(BankProfileEn argEn) { try { BankProfileDAL loDs = new BankProfileDAL(); return(loDs.GetBankProfileList(argEn)); } catch (Exception ex) { throw ex; } }
/// <summary> /// Method to Insert Bankprofiles /// </summary> /// <param name="argEn">Bankprofile Entity is an Input.</param> /// <returns>Returns Boolean</returns> public bool Insert(BankProfileEn argEn) { bool flag; using (TransactionScope ts = new TransactionScope()) { try { BankProfileDAL loDs = new BankProfileDAL(); flag = loDs.Insert(argEn); ts.Complete(); } catch (Exception ex) { throw ex; } } return(flag); }