-
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.
- Loading branch information
1 parent
d4b9474
commit 3bc996c
Showing
2 changed files
with
48 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
|
||
namespace GenericMvcUtilities.Attributes | ||
{ | ||
public class ModelInfo : Attribute | ||
{ | ||
public string DisplayName { get; set; } | ||
|
||
public string PluralizedName { get; set; } | ||
|
||
public string Description { get; set; } | ||
|
||
public ModelInfo() | ||
{ | ||
|
||
} | ||
} | ||
} |
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,27 @@ | ||
using GenericMvc.Controllers; | ||
using Microsoft.AspNetCore.Mvc; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
|
||
namespace GenericMvcUtilities.Controllers | ||
{ | ||
public class BasicModelsController : Controller | ||
{ | ||
//protected static List<> | ||
|
||
public static void Register(Controller controller) | ||
{ | ||
if (controller == null) | ||
throw new ArgumentNullException(nameof(controller)); | ||
|
||
var controllerName = controller.RouteData.Values["controller"].ToString(); | ||
} | ||
|
||
public BasicModelsController() | ||
{ | ||
|
||
} | ||
} | ||
} |