|
@model MVCMakale3.Models.MYazar
@{
ViewBag.Title = "Create";
}
<h2>Create</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm()) {
@Html.ValidationSummary(true)
<fieldset>
<legend>MYazar</legend>
<div class="editor-label">
@Html.LabelFor(model => model.YazarId)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.YazarId)
@Html.ValidationMessageFor(model => model.YazarId)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.YazarAd)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.YazarAd)
@Html.ValidationMessageFor(model => model.YazarAd)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.MakaleSayisi)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.MakaleSayisi)
@Html.ValidationMessageFor(model => model.MakaleSayisi)
</div>
<p>
<input type="submit" value="Create" />
</p>
</fieldset>
}
<div>
@Html.ActionLink("Back to List", "Index")
</div>
|