<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> Create a Movie

Create a Movie

<% Html.EnableClientValidation(); %> <% using (Html.BeginForm()) {%> <%: Html.ValidationSummary(true) %>
Fields
<%: Html.LabelFor(model => model.Title) %>
<%: Html.TextBoxFor(model => model.Title) %> <%: Html.ValidationMessageFor(model => model.Title) %>
<%: Html.LabelFor(model => model.ReleaseDate) %>
<%: Html.TextBoxFor(model => model.ReleaseDate) %> <%: Html.ValidationMessageFor(model => model.ReleaseDate) %>
<%: Html.LabelFor(model => model.Genre) %>
<%: Html.TextBoxFor(model => model.Genre) %> <%: Html.ValidationMessageFor(model => model.Genre) %>
<%: Html.LabelFor(model => model.Rating) %>
<%: Html.TextBoxFor(model => model.Rating)%> <%: Html.ValidationMessageFor(model => model.Rating)%>
<%: Html.LabelFor(model => model.Price) %>
<%: Html.TextBoxFor(model => model.Price) %> <%: Html.ValidationMessageFor(model => model.Price) %>

<% } %>
<%: Html.ActionLink("Back to List", "Index") %>