public RecordEditViewModel CreateRecord()
        {
            var cRepo  = new SubcategoriesRepository();
            var rRepo  = new CategoriesRepository();
            var pRepo  = new PeriodsRepository();
            var Record = new RecordEditViewModel()
            {
                RecordId      = Guid.NewGuid().ToString(),
                Subcategories = cRepo.GetSubcategories(),
                Categories    = rRepo.GetCategories(),
                periods       = pRepo.GetPeriods()
            };

            return(Record);
        }
예제 #2
0
        public RecordEditViewModel CreateRecord()
        {
            var eRepo  = new ExpenseTypeRepository();
            var sRepo  = new SubcategoryRepository();
            var cRepo  = new CategoriesRepository();
            var pRepo  = new PeriodsRepository();
            var record = new RecordEditViewModel()
            {
                RecordId      = Guid.NewGuid().ToString(),
                ExpenseTypes  = eRepo.GetExpenseTypes(),
                Subcategories = sRepo.GetSubcategories(),
                Categories    = cRepo.GetCategories(),
                Periods       = pRepo.GetPeriods()
            };

            return(record);
        }