//public int ChkAccountAvail(int customerId, string tableName)
        //{
        //    int Count = 0;
        //    CustomerAccountDao customerAccountDao = new CustomerAccountDao();
        //    try
        //    {
        //        Count = customerAccountDao.ChkAccountAvail(customerId, tableName);
        //    }
        //    catch (BaseApplicationException Ex)
        //    {
        //        throw Ex;
        //    }
        //    catch (Exception Ex)
        //    {
        //        BaseApplicationException exBase = new BaseApplicationException(Ex.Message, Ex);
        //        NameValueCollection FunctionInfo = new NameValueCollection();

        //        FunctionInfo.Add("Method", "CustomerAccountBo.cs:ChkAccountAvail()");


        //        object[] objects = new object[2];
        //        objects[0] = customerId;
        //        objects[1] = tableName;


        //        FunctionInfo = exBase.AddObject(FunctionInfo, objects);
        //        exBase.AdditionalInformation = FunctionInfo;
        //        ExceptionManager.Publish(exBase);
        //        throw exBase;

        //    }
        //    return Count;
        //}

        #region AdviserAccountsList

        public List <CustomerAccountsVo> GetAdviserMFAccountList(int adviserId, int CurrentPage, string sortOrder, out int count, string NameFilter, string amcName, out Dictionary <string, string> genDictAMC)
        {
            List <CustomerAccountsVo> customerAccountsList = new List <CustomerAccountsVo>();
            CustomerAccountDao        customerAccountDao   = new CustomerAccountDao();

            try
            {
                customerAccountsList = customerAccountDao.GetAdviserMFAccountList(adviserId, CurrentPage, sortOrder, out count, NameFilter, amcName, out genDictAMC);
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();
                FunctionInfo.Add("Method", "CustomerAccountBo.cs:GetAdviserMFAccountList()");
                object[] objects = new object[1];
                objects[0]   = adviserId;
                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
            return(customerAccountsList);
        }