1.2 KiB
1.2 KiB
title | author | description | ms.author | ms.date | uid |
---|---|---|---|---|---|
Controller methods and views in ASP.NET Core | rick-anderson | Learn how to work with controller methods, views, and DataAnnotations in ASP.NET Core. | riande | 03/07/2017 | tutorials/first-mvc-app/controller-methods-views |
Controller methods and views in ASP.NET Core
We have a good start to the movie app, but the presentation isn't ideal. We don't want to see the time (12:00:00 AM in the image below) and ReleaseDate should be two words.
Open the Models/Movie.cs file and add the highlighted lines shown below:
::: moniker range=">= aspnetcore-2.1" [!code-csharp] ::: moniker-end ::: moniker range="<= aspnetcore-2.0" [!code-csharp] ::: moniker-end
[!INCLUDE adding-model]