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); }
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); }