Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Collections are not correctly model-bound #2129

@ghost

Description

I retrieve an list of items with the action below

    public IActionResult Edit(int id)
    {
        ObservationRepository _obsRepo = new ObservationRepository(_db);
        List<Observation> allMsg = null;
        allMsg = _obsRepo.getObservations(id);
        ViewBag.ModeEdit = true;
        return PartialView("_Observations", allMsg);
    }

The model's view is defined as @model List<Mediagral.Core.Models.Observation>

there an example of input generated for a property with an attribut name that contain an indexed array without name.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions