Beispiel #1
0
 /// <summary>
 /// Method to Get FeeTypes Entity
 /// </summary>
 /// <param name="argEn">HostelStrAmount Entity is an Input.HSCode as Input Property.</param>
 /// <returns>Returns HostelStrAmount Entity</returns>
 public HostelStrAmountEn GetItem(HostelStrAmountEn argEn)
 {
     try
     {
         HostelStrAmountDAL loDs = new HostelStrAmountDAL();
         return(loDs.GetItem(argEn));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Beispiel #2
0
 /// <summary>
 /// Method to Get List of HostelStructureAmount
 /// </summary>
 /// <param name="argEn">HostelStrAmount Entity is an Input.</param>
 /// <returns>Returns List of HostelStrAmounts</returns>
 public List <HostelStrAmountEn> GetList(HostelStrAmountEn argEn)
 {
     try
     {
         HostelStrAmountDAL loDs = new HostelStrAmountDAL();
         return(loDs.GetList(argEn));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Beispiel #3
0
        /// <summary>
        /// Method to Update HostelStrAmount
        /// </summary>
        /// <param name="argEn">HostelStrAmount Entity is an Input.</param>
        /// <returns>Returns Boolean</returns>
        public bool Update(HostelStrAmountEn argEn)
        {
            bool flag;

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