-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge initial model controller with fixed dependencies
- Loading branch information
Showing
23 changed files
with
398 additions
and
241 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"projects": [ "src", "test" ], | ||
"sdk": { | ||
"version": "1.0.0-preview2-003156" | ||
"version": "1.0.0-preview2-1-003177" | ||
} | ||
} |
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,16 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using Microsoft.AspNetCore.Mvc; | ||
using GenericMvc.Controllers; | ||
|
||
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860 | ||
|
||
namespace GenericMvc.Test.App.Controllers | ||
{ | ||
public class ModelsController : BasicModelsController | ||
{ | ||
|
||
} | ||
} |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
|
||
namespace GenericMvc | ||
{ | ||
public static class BasicMvc | ||
{ | ||
public static string Layout { get; set; } = null; | ||
} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
@using GenericMvc.Controllers | ||
@model List<BasicModelsController.ViewModel> | ||
|
||
@{ | ||
ViewData["Title"] = "Models - Index"; | ||
|
||
Layout = BasicMvc.Layout ?? Layout; | ||
} | ||
|
||
<section class="well"> | ||
<header class="row"> | ||
<div class="col-md-6"> | ||
<div class="pull-left"> | ||
<h2 class="text-primary">Models</h2> | ||
<h4>All registered models in the Application</h4> | ||
</div> | ||
</div> | ||
<div class="col-md-6"> | ||
<div class="pull-right"> | ||
<h2 class="text-primary"><i class="material-icons">list</i> Index</h2> | ||
<h4>@Model.Count Models</h4> | ||
</div> | ||
</div> | ||
</header> | ||
<hr class="shadow-z-1 primarycolor" /> | ||
<div class="row"> | ||
<div class="col-md-3"> | ||
<div class="pull-left"> | ||
</div> | ||
</div> | ||
<div class="col-md-9"> | ||
<div class="pull-right"> | ||
</div> | ||
</div> | ||
</div> | ||
<table class="table table-striped table-responsive table-hover"> | ||
<tr> | ||
<th>Name</th> | ||
<th>Actions</th> | ||
</tr> | ||
@foreach (var item in Model) | ||
{ | ||
<tr> | ||
<td>@Html.DisplayFor(modelItem => item.Name)</td> | ||
<td> | ||
<a asp-controller="@item.Name" asp-action="Index">Index</a> | ||
</td> | ||
</tr> | ||
} | ||
</table> | ||
<hr class="shadow-z-1 primarycolor" /> | ||
<footer class="row"> | ||
<div class="col-md-6"> | ||
<div class="pull-left"> | ||
<h5 class="text-primary">Models</h5> | ||
</div> | ||
</div> | ||
<div class="col-md-6"> | ||
<div class="pull-right"> | ||
<h5><i class="material-icons">list</i> Index</h5> | ||
</div> | ||
</div> | ||
</footer> | ||
</section> |
Oops, something went wrong.