Skip to content

Commit

Permalink
Initial design on models controller
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkis117 committed Jan 22, 2017
1 parent d4b9474 commit 3bc996c
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/GenericMvc/Attributes/ModelInfo.cs
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()
{

}
}
}
27 changes: 27 additions & 0 deletions src/GenericMvc/Controllers/ModelsController.cs
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()
{

}
}
}

0 comments on commit 3bc996c

Please sign in to comment.