U4-7844 - ModelsBuilder - Model bind strongly typed models in controllers

Created by Stephan 27 Jan 2016, 11:04:02 Updated by Shannon Deminick 27 Jan 2016, 12:55:42

Tags: ModelsBuilder

Should be possible to use models in controllers eg

public ActionResult Index(MyDocument model)


Stephan 27 Jan 2016, 11:06:49

PR https://github.com/umbraco/Umbraco-CMS/pull/1062

Shannon Deminick 27 Jan 2016, 12:55:21

works wonderfully. syntax like this works with strongly typed models.

public class TestController : RenderMvcController
        public override ActionResult Index(Umbraco.Web.PublishedContentModels.Test model)
            return CurrentTemplate(model);

Priority: Normal

Type: Task

State: Fixed


Difficulty: Normal


Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version: 7.4.0

Sprint: Sprint 7

Story Points: