示例#1
0
 /// <summary>
 /// Method to Get HostelStructucture Entity
 /// </summary>
 /// <param name="argEn">HostelStructucture Entity is an Input.HostelStuctureCode as Input Property.</param>
 /// <returns>Returns HostelStructucture Entity</returns>
 public HostelStructEn GetItem(HostelStructEn argEn)
 {
     try
     {
         HostelStructDAL loDs = new HostelStructDAL();
         return(loDs.GetItem(argEn));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
示例#2
0
 /// <summary>
 /// Method to Get List of Active or Inactive Hostels
 /// </summary>
 /// <param name="argEn">HostelStructure Entity is an Input.RoomType,Code,Block and Status are Input Properties.</param>
 /// <returns>Returns List of HostelStructure</returns>
 public List <HostelStructEn> GetHostelList(HostelStructEn argEn)
 {
     try
     {
         HostelStructDAL loDs = new HostelStructDAL();
         return(loDs.GetHostelList(argEn));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
示例#3
0
        /// <summary>
        /// Method to Insert HostelStructure
        /// </summary>
        /// <param name="argEn">HostelStructure Entity is an Input.</param>
        /// <returns>Returns Boolean</returns>
        public bool Insert(HostelStructEn argEn)
        {
            bool flag;

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