public static List <IncomeType> GetIncomeTypes(long accountId = 0)
        {
            if (Types == null || !Types.Any())
            {
                Types = IncomeTypeRepository.GetAllIncomeTypes();
            }

            return(Types);
        }
        public static void AddIncomeType(string name)
        {
            if (Types.Any(c => c.Name == name))
            {
                return;
            }

            IncomeTypeRepository.CreateIncomeType(name);
            Types = IncomeTypeRepository.GetAllIncomeTypes();
        }
 static IncomeTypeHelper()
 {
     Types = IncomeTypeRepository.GetAllIncomeTypes();
 }