Question: PLEASE HELP Visual Studio: 8. Add a new folder named Contact to your Views folder. Add a Razor view to this folder and use the

PLEASE HELP

Visual Studio:

8. Add a new folder named Contact to your Views folder. Add a Razor view to this folder and use the default name, Index.cshtml (Views/Contact/Index.cshtml). Use a strongly typed view. . Make changes to this code to reflect the 6 properties in your Contact view. Use the asp-validation-for tag helper to display your validation messages and display them in red. Include a title and a heading for the Contact page. On your contact page, include a mailing address for your store, a phone number, an email, and hours of operation. This page will display a contact form for customers to enter their information. See attached sample images for layout ideas.

9. Add a new controller to your Controllers folder and name it ContactController.cs which will have two Index action methods. The first one will use the HttpGet attribute and return a View and the second one will use the HttpPost attribute and will accept a ContactModel object as input and return a view of the model.

Index.cshtml

@{ ViewData["Title"] = "Home Page"; }

Welcome

The name of my store will be Arthur's Music Lounge The name of my application will be Music Genres The app will read all the music you have in your library and sort each one out by each genre such as Rock,Pop,Rap,House,R&B,Electro etc. This app will then sort each song of each genre alphabetically

HomeController.cs:

using ArthurMusic_Lounge.Models; using Microsoft.AspNetCore.Mvc; using System.Diagnostics;

namespace ArthurMusic_Lounge.Controllers { public class HomeController : Controller { private readonly ILogger _logger;

public HomeController(ILogger logger) { _logger = logger; }

public IActionResult Index() { return View(); }

public IActionResult Privacy() { return View(); }

[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] public IActionResult Error() { return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier }); } } }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!