partial void ToModelPostprocessing(BudgetModelDto dto, ref BudgetModel model)
 {
     var modelType = model.GetType();
     var mapper1 = new Mapper_ExpenseDto_Expense(this.bucketRepo);
     List<Expense> expenses2 = dto.Expenses.Select(mapper1.ToModel).ToList();
     model.LastModified = dto.LastModified ?? DateTime.Now;
     modelType.GetProperty("Expenses").SetValue(model, expenses2);
     var mapper2 = new Mapper_IncomeDto_Income(this.bucketRepo);
     List<Income> incomes3 = dto.Incomes.Select(mapper2.ToModel).ToList();
     modelType.GetProperty("Incomes").SetValue(model, incomes3);
 }
        partial void ToModelPostprocessing(BudgetModelDto dto, ref BudgetModel model)
        {
            var            modelType = model.GetType();
            var            mapper1   = new Mapper_ExpenseDto_Expense(this.bucketRepo);
            List <Expense> expenses2 = dto.Expenses.Select(mapper1.ToModel).ToList();

            model.LastModified = dto.LastModified ?? DateTime.Now;
            modelType.GetProperty("Expenses").SetValue(model, expenses2);
            var           mapper2  = new Mapper_IncomeDto_Income(this.bucketRepo);
            List <Income> incomes3 = dto.Incomes.Select(mapper2.ToModel).ToList();

            modelType.GetProperty("Incomes").SetValue(model, incomes3);
        }