/// <summary>
        /// Gets the income type by branch identifier.
        /// </summary>
        /// <param name="Id">The identifier.</param>
        /// <returns></returns>
        /// <exception cref="System.ApplicationException">Repository GetIncomeTypeById</exception>
        public IEnumerable <IIncomeType> GetIncomeTypeByBranchId(int Id)
        {
            try
            {
                using (
                    var dbContext = (PitalyticsEntities)this.dbContextFactory.GetDbContext())
                {
                    var aRecord =
                        LookupQueries.GetIncomeTypeByBranchId(dbContext, Id).ToList();

                    return(aRecord);
                }
            }
            catch (Exception e)
            {
                throw new ApplicationException("Repository GetIncomeTypeByBrranchId", e);
            }
        }