Adding Edit View

It will have a same structure with Create View.

@model PlaylistGenreMvc.Models.SongModel
@{
    ViewBag.Title = "Edit";
}
<h2>Edit</h2>

@using (Html.BeginForm())
{
    <fieldset>
        <legend>BookModel</legend>
        <div class="editor-label">
            @Html.LabelFor(model => model.Title)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Title)
        </div>

        ..
        ..
        ..

        <div class="editor-field">
            @Html.DropDownListFor(model => model.GenreId, Model.Genres)
        </div>
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}
<div>
    @Html.ActionLink("Back to List", "Index")
</div>

results matching ""

    No results matching ""