Esempio n. 1
0
 /// <summary>
 /// Method to Get StudentCategoryAccess Entity
 /// </summary>
 /// <param name="argEn">StudentCategoryAccess Entity is an Input.StudentCategoryCode as Input Property.</param>
 /// <returns>Returns StudentCategoryAccess Entity</returns>
 public StudentCategoryAccessEn GetItem(StudentCategoryAccessEn argEn)
 {
     try
     {
         StudentCategoryAccessDAL loDs = new StudentCategoryAccessDAL();
         return(loDs.GetItem(argEn));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Method to Get List of All StudentCategoryAccess
 /// </summary>
 /// <param name="argEn">StudentCategoryAccess Entity as an Input.StudentCategoryCode as Input Property.</param>
 /// <returns>Returns List of StudentCategoryAccess</returns>
 public List <StudentCategoryAccessEn> GetStuCatAccessList(StudentCategoryAccessEn argEn)
 {
     try
     {
         StudentCategoryAccessDAL loDs = new StudentCategoryAccessDAL();
         return(loDs.GetStuCatAccessList(argEn));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Esempio n. 3
0
        /// <summary>
        /// Method to Insert StudentCategoryAccess
        /// </summary>
        /// <param name="argEn">StudentCategoryAccess Entity is an Input.</param>
        /// <returns>Returns Boolean</returns>
        public bool Insert(StudentCategoryAccessEn argEn)
        {
            bool flag;

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