logo

Crowdly

Please, fill in the gaps in the code that implements passing strongly-typed data...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Please, fill in the gaps in the code that implements passing strongly-typed data into view.

CSHTML:

 WebApplication1.ViewModels.Address

<h2>Contact</h2>

<address>

   
.Street<br>

   
.City<br>

    <abbr title="Phone">P:</abbr> 425.555.0100

</address>

c#:

public IActionResult Contact()

{

    ViewData["Message"] = "Your contact page.";

    var viewModel = new Address()

    {

        Name = "Microsoft",

        Street = "One Microsoft Way",

        City = "Redmond"

    };

    return
;

}
More questions like this

Want instant access to all verified answers on softserve.academy?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!