-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
GeekTrainer
committed
Jan 28, 2015
1 parent
ee39a96
commit d9fade1
Showing
9 changed files
with
218 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
ChristopherDemos/MusicStore/ViewModels/AlbumCreateViewModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace MusicStore.ViewModels | ||
{ | ||
public class AlbumCreateViewModel | ||
{ | ||
public string AlbumTitle { get; set; } | ||
public string ArtistName { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
@model MusicStore.Models.Artist | ||
|
||
@{ | ||
ViewBag.Title = "Edit"; | ||
} | ||
|
||
|
||
|
||
<h2>Edit</h2> | ||
|
||
@if (!String.IsNullOrEmpty(ViewBag.Message)) { | ||
<h3 style="color:red">@ViewBag.Message</h3> | ||
} | ||
|
||
@using (Html.BeginForm()) | ||
{ | ||
@Html.AntiForgeryToken() | ||
|
||
<div class="form-horizontal"> | ||
<h4>Artist</h4> | ||
<hr /> | ||
@Html.ValidationSummary(true, "", new { @class = "text-danger" }) | ||
@Html.HiddenFor(model => model.ArtistID) | ||
|
||
<div class="form-group"> | ||
@Html.LabelFor(model => model.Name, htmlAttributes: new { @class = "control-label col-md-2" }) | ||
<div class="col-md-10"> | ||
@Html.EditorFor(model => model.Name, new { htmlAttributes = new { @class = "form-control" } }) | ||
@Html.ValidationMessageFor(model => model.Name, "", new { @class = "text-danger" }) | ||
</div> | ||
</div> | ||
@Html.HiddenFor(model => model.Version) | ||
|
||
|
||
<div class="form-group"> | ||
<div class="col-md-offset-2 col-md-10"> | ||
<input type="submit" value="Save" class="btn btn-default" /> | ||
</div> | ||
</div> | ||
</div> | ||
} | ||
|
||
<div> | ||
@Html.ActionLink("Back to List", "Index") | ||
</div> | ||
|
||
@section Scripts { | ||
@Scripts.Render("~/bundles/jqueryval") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters