示例#1
0
 /// <summary>
 /// Method to Get StudentCategory Entity
 /// </summary>
 /// <param name="argEn">StudentCategory Entity is an Input.StudentCategoryCode as Input Property.</param>
 /// <returns>Returns StudentCategory Entity</returns>
 public StudentCategoryEn GetItem(StudentCategoryEn argEn)
 {
     try
     {
         StudentCategoryDAL loDs = new StudentCategoryDAL();
         return(loDs.GetItem(argEn));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
示例#2
0
 /// <summary>
 /// Method to Get List of  Active or Inactive StudentCategory
 /// </summary>
 /// <param name="argEn">StudentCategory Entity as an Input.StudentCategoryCode,Description and Status as Input Properties.</param>
 /// <returns>Returns List of StudentCategory</returns>
 public List <StudentCategoryEn> GetStudentCategoryList(StudentCategoryEn argEn)
 {
     try
     {
         StudentCategoryDAL loDs = new StudentCategoryDAL();
         return(loDs.GetStudentCategoryList(argEn));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
示例#3
0
        /// <summary>
        /// Method to Insert StudentCategory
        /// </summary>
        /// <param name="argEn">StudentCategory Entity is an Input.</param>
        /// <returns>Returns Boolean</returns>
        public bool Insert(StudentCategoryEn argEn)
        {
            bool flag;

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