Пример #1
0
 /// <summary>
 /// Method to Get refund Cheques
 /// </summary>
 /// <param name="argEn">Cheques Entity is an Input.ProcessID is Input Property.</param>
 /// <returns>Returns List of Cheques</returns>
 public List <ChequeEn> GetRefundList(ChequeEn argEn)
 {
     try
     {
         ChequeDAL loDs = new ChequeDAL();
         return(loDs.GetRefundList(argEn));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Пример #2
0
 /// <summary>
 /// Method to Get Cheque Item
 /// </summary>
 /// <param name="argEn">Cheques Entity is an Input.ProcessID is Input Property.</param>
 /// <returns>Returns a Cheque Item</returns>
 public ChequeEn GetItem(ChequeEn argEn)
 {
     try
     {
         ChequeDAL loDs = new ChequeDAL();
         return(loDs.GetItem(argEn));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Пример #3
0
        /// <summary>
        /// Method to Insert Cheques
        /// </summary>
        /// <param name="argEn">Cheques Entity is the Input.</param>
        /// <returns>Returns a Boolean</returns>
        public string Insert(ChequeEn argEn)
        {
            String flag;

            using (TransactionScope ts = new TransactionScope())
            {
                try
                {
                    ChequeDAL loDs = new ChequeDAL();
                    flag = loDs.Insert(argEn);
                    ts.Complete();
                }
                catch (Exception ex)
                {
                    throw ex;
                }
            }
            return(flag);
        }
Пример #4
0
        /// <summary>
        /// Method to Delete Cheques
        /// </summary>
        /// <param name="argEn">Cheques Entity is the Input.ProcessID is the Input Property.</param>
        /// <returns>Returns Boolean.</returns>
        public bool Delete(ChequeEn argEn)
        {
            bool flag;

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