Microsoft
70-519 · Question #86
70-519 Question #86: Real Exam Question with Answer & Explanation
The correct answer is A. Use the Bind attribute as a parameter in the Controller action and exclude the ServiceLevel. ASP.NET MVC model binding simplifies controller actions by introducing an abstraction layer that automatically populates controller action parameters, taking care of the mundane property mapping and type conversion code typically involved in working with ASP.NET request data. Tho
Question
You are designing an ASP.NET MVC web application for a bank. The application uses the Entity Framework model-first approach. The application displays data by using strongly- typed views. The Account Entity has a property named ServiceLevel. You need to ensure that only specified users can change the value of the ServiceLevel property. What should you recommend?
Options
- AUse the Bind attribute as a parameter in the Controller action and exclude the ServiceLevel
- BPass an instance of the entity object as a parameter to the Controller action.
- CModify the ServiceLevel property to be read-only.
- DUse Windows Communication Foundation (WCF) data services to update the entity directly
Explanation
- ASP.NET MVC model binding simplifies controller actions by introducing an abstraction layer that automatically populates controller action parameters, taking care of the mundane property mapping and type conversion code typically involved in working with ASP.NET request data. Though model binding seems simple, it's actually a relatively complex framework composed of a number of parts that work together to create and populate the objects that your controller actions
Community Discussion
No community discussion yet for this question.