public IActionResult Create(int id) { var project = projectRepo.GetById(id); var model = expenseRepo.AssignProjectId(id); model.Project = project; return(View(model)); }