/// <summary>
        /// This Function will return account type value
        /// </summary>
        /// <param name="formAccountType">formAccountType</param>
        /// <returns>account type Value</returns>
        public int GetAccountTypeValue(int formAccountType)
        {
            try
            {
                using (var unitOfWork = new EFUnitOfWork())
                {
                    var accountCurrencyRepo =
                        new AccountTypeRepository(new EFRepository <AccountType>(), unitOfWork);

                    ObjectSet <AccountType> currencyObjSet =
                        ((CurrentDeskClientsEntities)accountCurrencyRepo.Repository.UnitOfWork.Context).AccountTypes;


                    return
                        (currencyObjSet.Where(accur => accur.PK_AccountType == formAccountType)
                         .Select(x => x.FK_AccountTypeValue)
                         .FirstOrDefault());
                }
            }
            catch (Exception ex)
            {
                CommonErrorLogger.CommonErrorLog(ex, System.Reflection.MethodBase.GetCurrentMethod().Name);
                throw;
            }
        }
        /// <summary>
        /// This Function Will return all account types
        /// </summary>
        /// <param name="formType">formType</param>
        /// <param name="organizationID">organizationID</param>
        /// <returns></returns>
        public List <AccountType> GetSelectedAccountType(int formType, int organizationID)
        {
            try
            {
                using (var unitOfWork = new EFUnitOfWork())
                {
                    var accountCurrencyRepo =
                        new AccountTypeRepository(new EFRepository <AccountType>(), unitOfWork);

                    ObjectSet <AccountType> currencyObjSet =
                        ((CurrentDeskClientsEntities)accountCurrencyRepo.Repository.UnitOfWork.Context).AccountTypes;


                    return(currencyObjSet.Where(accur => accur.FK_AccountFormType == formType && accur.FK_OrganizationID == organizationID).Include("L_AccountTypeValue").ToList());
                }
            }
            catch (Exception ex)
            {
                CommonErrorLogger.CommonErrorLog(ex, System.Reflection.MethodBase.GetCurrentMethod().Name);
                throw;
            }
        }