/// <summary>
        /// Gets the name of the agent of deduction by.
        /// </summary>
        /// <param name="role">The role.</param>
        /// <returns></returns>
        /// <exception cref="ApplicationException">Repository GetAdminUserRoleByRole</exception>
        public IAgentOfDeduction GetAgentOfDeductionByCacNumber(string cacNumber)
        {
            try
            {
                using (
                    var dbContext = (PitalyticsEntities)dbContextFactory.GetDbContext())
                {
                    var list = AccountQueries.GetAgentOfDeductionByCacNumber(dbContext, cacNumber);

                    return(list);
                }
            }
            catch (Exception e)
            {
                throw new ApplicationException("Repository GetCompanyName", e);
            }
        }