Beispiel #1
0
 /// <summary>
 /// Method to Get Block Entity
 /// </summary>
 /// <param name="argEn">Block Entity is an Input</param>
 /// <returns>Returns Block Entity</returns>
 public BlockEn GetItem(BlockEn argEn)
 {
     try
     {
         BlockDAL loDs = new BlockDAL();
         return(loDs.GetItem(argEn));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Beispiel #2
0
 /// <summary>
 /// Method to Get List of Blocks by BlockCode
 /// </summary>
 /// <param name="argEn">BlockCode is an Input.</param>
 /// <returns>Returns List of Blocks</returns>
 public List <BlockEn> GetBlockList(string argEn)
 {
     try
     {
         BlockDAL loDs = new BlockDAL();
         return(loDs.GetBlockList(argEn));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Beispiel #3
0
        /// <summary>
        /// Method to Insert Blocks
        /// </summary>
        /// <param name="argEn">Block Entity is an Input.</param>
        /// <returns>Returns Boolean</returns>
        public bool Insert(BlockEn argEn)
        {
            bool flag;

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