Beispiel #1
0
 /// <summary>
 /// Method to Get List of SemesterSetup
 /// </summary>
 /// <param name="argEn">SemesterSetup Entity as an Input.</param>
 /// <returns>Returns List of SemesterSetup</returns>
 public List <SemesterSetupEn> GetListSemesterCode(SemesterSetupEn argEn)
 {
     try
     {
         SemesterSetupDAL loDs = new SemesterSetupDAL();
         return(loDs.GetListSemesterCode(argEn));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Beispiel #2
0
 /// <summary>
 /// Method to Get List of Semesters
 /// </summary>
 /// <param name="argEn">SemisterSetupCode as Input.</param>
 /// <returns>Returns List of SemesterSetup</returns>
 public SemesterSetupEn GetItemBySession(SemesterSetupEn argEn)
 {
     try
     {
         SemesterSetupDAL loDs = new SemesterSetupDAL();
         return(loDs.GetItemBySession(argEn));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Beispiel #3
0
 public List <SemesterSetupEn> GetCurrentSessionList(SemesterSetupEn argEn)
 {
     try
     {
         SemesterSetupDAL loDs = new SemesterSetupDAL();
         return(loDs.GetCurrentSessionList(argEn));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Beispiel #4
0
 /// <summary>
 /// Method to Get SemesterSetup Entity
 /// </summary>
 /// <param name="argEn">SemesterSetup Entity is an Input.SAST_Code as Input Property.</param>
 /// <returns>Returns SemesterSetup Entity</returns>
 public SemesterSetupEn GetSessionItem(string argEn)
 {
     try
     {
         SemesterSetupDAL loDs = new SemesterSetupDAL();
         return(loDs.GetSessionItem(argEn));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Beispiel #5
0
 //modified by Hafiz @ 10/6/2016 - added ProgramId
 public string FetchTotalBatchAmount(string BatchNumber, string ProgramId)
 {
     try
     {
         SemesterSetupDAL loDs = new SemesterSetupDAL();
         return(loDs.FetchTotalBatchAmount(BatchNumber, ProgramId));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Beispiel #6
0
        /// <summary>
        /// Method to Delete SemesterSetup
        /// </summary>
        /// <param name="argEn">SemesterSetup Entity is an Input.</param>
        /// <returns>Returns Boolean</returns>
        public bool Delete(SemesterSetupEn argEn)
        {
            bool flag;

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