I’m developing my first MVC intranet and I’ve just come across a bit of a problem.
I have a model for my create page
using System.Collections.Generic;
using CTTModel;
namespace TestingTool.ViewModels
{
public class TestCreationModel
{
public Test Tests { get; set; }
public Risk Risks { get; set; }
public ICollection<TestField> Fields { get; set; }
}
}
I need to create a a test that has a risk and a collection of fields associated. It must be done in the same process.
So, what I need is some control where I can add multiple records.
So that went I press Create, it is sent back to the controller and then I can add each record to a ICollection of TestField.
The tests and risks part works fine, I’m struggling with the field thing.
Any ideas?

Well, I found out what I wanted.
What I wanted was a Master-Detail CRUD operations.
I found a nice tutorial here, http://hasibulhaque.com/?p=200.
Now it works just fine.