Witam.
Action:
[HttpGet]
public IActionResult Index()
{
CalculatorViewModel viewModel = new CalculatorViewModel();
viewModel.Fruits = db.Fruits.ToList();
viewModel.Flavors = db.Flavors.ToList();
viewModel.SelectedFruits = new List<Ingredient>();
viewModel.SelectedFlavor = new Flavor();

        return View(viewModel);
    }

ViewModel:
public class CalculatorViewModel
{
public List<Fruit> Fruits { get; set; }
public List<Flavor> Flavors { get; set; }

    public string Name { get; set; }
    public List<Ingredient> SelectedFruits { get; set; }
    public Flavor SelectedFlavor { get; set; }
    public double SelectedAlcoholQuantity { get; set; }
}

View:

@fruit.Name <input id="fruitId" name="?" vale="?" type="number" class="form-control input-sm" placeholder="Quantity" min="0" step="0.1" />

Polega to na tym że z bazy przesyłam listę owoców do widoku. Na widoku chciałbym zrobić listę składników czy List<Ingredient>. Jak to zrobić? Klasa Ingredient oprócz owocu ma w sobie double ilość, którą chciałbym wyciągnąć z tego inputa. Czy jest to do zrobienia? Jeśli słabo opisałem problem to proszę o uwagi.

Repo: https://github.com/katanisk8/CalcWin/tree/master/CalcWin