Exemple #1
0
 /// <summary>
 /// Method to Get List of All StudentCategory
 /// </summary>
 /// <param name="argEn">StudentBank Entity as an Input.StudentBankCode and Description as Input Properties.</param>
 /// <returns>Returns List of StudentBank</returns>
 public List <StudentBankEn> GetStudentBankTypeListAll(StudentBankEn argEn)
 {
     try
     {
         StudentBankDAL loDs = new StudentBankDAL();
         return(loDs.GetStudentBankTypeListAll(argEn));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemple #2
0
        /// <summary>
        /// Method to Delete StudentBank
        /// </summary>
        /// <param name="argEn">StudentBank Entity is an Input.</param>
        /// <returns>Returns Boolean</returns>
        public bool Delete(StudentBankEn argEn)
        {
            bool flag;

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