ASP.NET MVC: ModelState vs. ModelStateDictionary

asp.net, asp.net-mvc, c#

Solution

This is a good link that shows how a service can perform validation and communicate the result back to the controller:

http://www.asp.net/mvc/tutorials/validating-with-a-service-layer-cs (fixed link)

Problem

I have a service which has a method that's called when a certain controller method is triggered. My service returns a custom result object PlacementResult in which I want to communicate errors that may have happened (validation) back to the controller method. Should PlacementResult have a ModelState or a ModelStateDictionary to communicate errors back to the controller (and finally view)? How would I string this together? Finally, how do I get the ModelState/ModelStateDictionary (whichever you tell me I should choose) back into the view (highlighting the appropriate text box, show the error message etc.)? Thank you !

Original source