How can remedy the problem?
There is a ASP.NET MVC 2 Web Application named PassGuideApp.
There is a controller with has the code displayed in the exhibit.
There are two Edit actions.
The first Edit action shows details on the employee that is edited.
The second Edit action is put into action when a user clicks a Save button in order to
update the Employee details.
However, a run time exception claims that the Edit Action is ambiguous.
How can remedy the problem?
Note: each action is a complete solution.
What code should be used?
There is a ASP.NET MVC 2 Web Application named PassGuideApp.
There is a controller PassGuideCtrl.
The signatures of PassGuideCtrl is displayed in the exhibit.
Employee details is displayed when an employee name is entered as the path by invoking
the EmployeesByName action.
Note: Employee names must be between 7 and 16 characters in length, and contains
underscores and alphanumerical characters.
What code should be used?
What code is needed?
How can this be achieved?
DRAG DROP
There is an ASP.NET Dynamic Data Web site PassGuideWS.
PassGuideWS has a Web page named PassGuidePage.
PassGuideDC3 is an ObjectDataSource control in PassGuidePage.
PassGuidePage also have GridView control PassGuideGW.
PassGuideGW uses PassGuideDC3 as data source.
Editing is enabled for PassGuideGW.
PassGuideGW supports auto-generated posts.
Dynamic Data behavior is supported by PassGuideGW.
PassGuideWS uses a Web Service to list and edit instances of a class Employees through
exposed instances.
Clients uses PassGuideGW to handle these Employee instances.
Clients must be able to update these instances.
How can this be achieved?
What action should you take?
There is an ASP.NET Dynamic Data Web site PassGuideWS.
Global.asax of PassGuideWS is displayed in the exhibit.
PassGuideWS has one data context which, for all the tables in the data model, enable
automatic scaffolding.
A custom layout is used to display posts from a Table Employees.
What action should you take?
How do you achieve this?
There is an ASP.NET Web site PassGuideWS.
PassGuideWS includes the class shown in the Class Exhibit.
PassGuideWS communicates with an external data source that requires the data to have
the format displayed XML exhibit.
The XMSerializer class is used so that Employee instances are serialized and meeting the
external XML format.
How do you achieve this?
How can this be achieved?
Which code should be used for PassGuideView?
DRAG DROP
There is an ASP.NET page PassGuidePage.
PassGuidePage has EmployeesDS method which produces a DataSet.
This DateSet includes data from two tables EmpoyeerDetails and PersonalDetails.
There is a view PassGuideView.
PassGuideView displays data from the PersonalDetails tables.
Which code should be used for PassGuideView?
You need to resolve two problems: A) the client proxy must return a List (of Employees) instead of an array
DRAG DROP
There is a Visual Studio 2010 solution.
The solution includes an ASP.NET project.
The solution also includes a WCF service project.
The WCF service includes PassGuideEmployees method.
PassGuideEmployees returns an array of Employee objects.
PassGuideEmployees takes no arguments.
A proxy class is used by the application to access the WCF.
The wizard ‘Add Service Reference’ is used to make the proxy class.
The service endpoint is manually adjusted to another port.
You need to resolve two problems:
A) the client proxy must return a List (of Employees) instead of an array.
B) the client must use the adjusted service address.