示例#1
0
        /// <summary>
        /// To Add the Record of Billing Period Admin
        /// </summary>
        /// <param name="objAdminUserProp"></param>
        /// <returns>Int</returns>
        /// <createdBy></createdBy>
        /// <createdOn>May-19,2016</createdOn>
        public int AddBillingPeriodAdmin(BillingPeriodprop objBillingPeriod)
        {
            int        result;
            BillingDAL objBillingDAL = new BillingDAL();  /// Creating The Object of BillingDAL

            CommonDAL.logger.LogInfo(typeof(string), string.Format(CultureInfo.InvariantCulture, "Called {2} function ::{0} {1}.", DateTime.Now.ToShortDateString(), DateTime.Now.ToShortTimeString(), MethodBase.GetCurrentMethod().Name));
            try
            {
                result = objBillingDAL.AddBillingPeriodAdmin(objBillingPeriod); /// sending the new record model to the data access layer.
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                objBillingDAL = null;
                CommonDAL.logger.LogInfo(typeof(string), string.Format(CultureInfo.InvariantCulture, "End {2} function ::{0} {1}.", DateTime.Now.ToShortDateString(), DateTime.Now.ToShortTimeString(), MethodBase.GetCurrentMethod().Name));
            }
            return(result);
        }