Beispiel #1
0
 /// <summary>
 /// Method to Get StudentStatus Entity
 /// </summary>
 /// <param name="argEn">StudentStatus Entity is an Input.MatricNo as Input Property.</param>
 /// <returns>Returns StudentStatus Entity</returns>
 public StudentStatusEn GetItem(StudentStatusEn argEn)
 {
     try
     {
         StudentStatusDAL loDs = new StudentStatusDAL();
         return(loDs.GetItem(argEn));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Beispiel #2
0
        /// <summary>
        /// Method to Get StudentStatus by StudentStatusCode
        /// </summary>
        /// <param name="argEn">StudentStatusCode as an Input.</param>
        /// <returns>Returns StudentStatus Entity</returns>

        public StudentStatusEn GetStudentBIStatus(string argEn)
        {
            try
            {
                StudentStatusDAL loDs = new StudentStatusDAL();
                return(loDs.GetStudentBlStatus(argEn));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Beispiel #3
0
 /// <summary>
 /// Method to Get List of All StudentStatus
 /// </summary>
 /// <param name="argEn">StudentStatus Entity as an Input.StudentStatusCode and Description as Input Property.</param>
 /// <returns>Returns List of StudentStatus</returns>
 public List <StudentStatusEn> GetStudentStatusListAll(StudentStatusEn argEn)
 {
     try
     {
         StudentStatusDAL loDs = new StudentStatusDAL();
         return(loDs.GetStudentStatusListAll(argEn));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Beispiel #4
0
        /// <summary>
        /// Method to Insert StudentStatus
        /// </summary>
        /// <param name="argEn">StudentStatus Entity is an Input.StudentStatusCode as Input Property.</param>
        /// <returns>Returns Boolean</returns>
        public bool Delete(StudentStatusEn argEn)
        {
            bool flag;

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