Exemple #1
0
        /// <summary>
        /// This method is used for the insert/Update TradingWindowEvent Financial year details.
        /// </summary>
        /// <param name="i_sConnectionString">Connection string</param>
        /// <param name="i_objUserInfoDTO">Role master Object</param>
        /// <returns></returns>
        public TradingWindowEventDTO SaveOtherEventDetails(string sConnectionString, TradingWindowEventDTO objTradingWindowsEventDTO, int i_nLoggedInUserID)
        {
            TradingWindowEventDTO result = null;

            try
            {
                //TradingWindowEventDAL objTradingWindowEventDAL = new TradingWindowEventDAL();
                using (var objTradingWindowEventDAL = new TradingWindowEventDAL())
                {
                    result = objTradingWindowEventDAL.SaveOtherEventDetails(sConnectionString, objTradingWindowsEventDTO, i_nLoggedInUserID);
                }
            }
            catch (Exception exp)
            {
                throw exp;
            }

            return(result);
        }
Exemple #2
0
        /// <summary>
        /// This method is used for the insert/Update TradingWindowEvent Financial year details.
        /// </summary>
        /// <param name="i_sConnectionString">Connection string</param>
        /// <param name="i_objUserInfoDTO">Role master Object</param>
        /// <returns></returns>
        public TradingWindowEventDTO GetDetailsOtherEvent(string sConnectionString, int nTradingWindowEventId)
        {
            TradingWindowEventDTO res = null;

            try
            {
                //TradingWindowEventDAL objTradingWindowEventDAL = new TradingWindowEventDAL();
                using (var objTradingWindowEventDAL = new TradingWindowEventDAL())
                {
                    res = objTradingWindowEventDAL.GetDetailsOtherEvent(sConnectionString, nTradingWindowEventId);
                }
            }
            catch (Exception exp)
            {
                throw exp;
            }

            return(res);
        }