Beispiel #1
0
 /// <summary>
 /// Method to Get StudentSponsor Entity
 /// </summary>
 /// <param name="argEn">StudentSponsor Entity is an Input.MatricNo as Input Property.</param>
 /// <returns>Returns StudentSponsor Entity</returns>
 public StudentSponEn GetItem(StudentSponEn argEn)
 {
     try
     {
         StudentSponDAL loDs = new StudentSponDAL();
         return(loDs.GetItem(argEn));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Beispiel #2
0
 /// <summary>
 /// Method to Get List of StudentSponsor
 /// </summary>
 /// <param name="argEn">StudentSponsor Entity as an Input.MatricNo as Input Property.</param>
 /// <returns>Returns List of StudentSponsor</returns>
 public List <StudentSponEn> GetStuSponsorList(StudentSponEn argEn)
 {
     try
     {
         StudentSponDAL loDs = new StudentSponDAL();
         return(loDs.GetStuSponserList(argEn));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Beispiel #3
0
        /// <summary>
        /// Method to Update StudentSponsor
        /// </summary>
        /// <param name="argEn">StudentSponsor Entity is an Input.</param>
        /// <returns>Returns Boolean</returns>
        public bool Update(StudentSponEn argEn)
        {
            bool flag;

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