Which line of code should you use to replace line GL21?

Posted by: Pdfprep Category: 70-486 Tags: , ,

You need to display the "miles" unit description after the distance in the GetLog view.

Which line of code should you use to replace line GL21? (Each correct answer presents a complete solution. Choose all that apply.)
A . @log.Distance miles
B . @Htrml.DisplayFor(model => log.Distance) miles
C . @log.Distance.ToString() @Html.TextArea("miles")
D . @Html.DisplayFor(model => log.Distance.ToString() + " miles")

Answer: A,B

Leave a Reply

Your email address will not be published.