Exemple #1
0
        /// <summary>
        ///  This method is used  for deleting data from billing and related tables
        /// </summary>
        /// <param name="BillingPeriodID"></param>
        /// <returns></returns>
        /// // <createdOn>May-23,2016</createdOn>
        public bool DeleteBillingData(int BillingID)
        {
            BillingDAL objBillingDAL = new BillingDAL();

            try
            {
                CommonDAL.logger.LogInfo(typeof(string), string.Format(CultureInfo.InvariantCulture, "Called {2} function ::{0} {1}.", DateTime.Now.ToShortDateString(), DateTime.Now.ToShortTimeString(), MethodBase.GetCurrentMethod().Name));
                return(objBillingDAL.DeleteBillingData(BillingID));
            }

            catch (Exception)
            {
                throw;
            }
            finally
            {
                CommonDAL.logger.LogInfo(typeof(string), string.Format(CultureInfo.InvariantCulture, "End {2} function ::{0} {1}.", DateTime.Now.ToShortDateString(), DateTime.Now.ToShortTimeString(), MethodBase.GetCurrentMethod().Name));
            }
        }