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

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