Ejemplo n.º 1
0
 /// <summary>
 /// Method to Get ProgramAccount Entity
 /// </summary>
 /// <param name="argEn">ProgramAccount Entity is an Input.SAPA_Code as Input Property.</param>
 /// <returns>Returns ProgramAccount Entity</returns>
 public ProgramAccountEn GetItem(ProgramAccountEn argEn)
 {
     try
     {
         ProgramAccountDAL loDs = new ProgramAccountDAL();
         return(loDs.GetItem(argEn));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Method to Get List of Program,Faculty And Semester
 /// </summary>
 /// <param name="argEn">Program,Faculty And Semester Entity is an Output.</param>
 /// <returns>Returns List of ProgramAccount</returns>
 public List <ProgramAccountEn> GetListProgramCombine(ProgramAccountEn argEn)
 {
     try
     {
         ProgramAccountDAL loDs = new ProgramAccountDAL();
         return(loDs.GetListProgramCombine(argEn));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Method to Insert ProgramAccount
        /// </summary>
        /// <param name="argEn">ProgramAccount Entity is an Input.</param>
        /// <returns>Returns Boolean</returns>
        public bool Insert(ProgramAccountEn argEn)
        {
            bool flag;

            using (TransactionScope ts = new TransactionScope())
            {
                try
                {
                    ProgramAccountDAL loDs = new ProgramAccountDAL();
                    flag = loDs.Insert(argEn);
                    ts.Complete();
                }
                catch (Exception ex)
                {
                    throw ex;
                }
            }
            return(flag);
        }