Versioning
This commit is contained in:
parent
328f6f166a
commit
5c1a49811a
15 changed files with 112 additions and 97 deletions
|
|
@ -5,6 +5,8 @@ using isnd.Data;
|
|||
using System.Linq;
|
||||
using isnd.ViewModels;
|
||||
using Unleash;
|
||||
using System.Reflection;
|
||||
|
||||
|
||||
namespace isnd.Controllers
|
||||
{
|
||||
|
|
@ -23,6 +25,7 @@ namespace isnd.Controllers
|
|||
|
||||
public IActionResult Index()
|
||||
{
|
||||
|
||||
return View(new HomeIndexViewModel{
|
||||
PkgCount = _dbContext.Packages.Count(),
|
||||
UnleashClient = _unleashĈlient
|
||||
|
|
@ -39,6 +42,11 @@ namespace isnd.Controllers
|
|||
public IActionResult Contact()
|
||||
{
|
||||
ViewData["Message"] = "Your contact page.";
|
||||
var ass = typeof(isn.Abstract.Resource).GetType().Assembly;
|
||||
var attrs = ass.GetCustomAttributes(true);
|
||||
// ass.GetCustomAttributes(true);
|
||||
System.Reflection.AssemblyFileVersionAttribute v = (AssemblyFileVersionAttribute)
|
||||
GetType().Assembly.GetCustomAttribute(typeof(AssemblyFileVersionAttribute));
|
||||
|
||||
return View();
|
||||
}
|
||||
|
|
@ -56,3 +64,6 @@ namespace isnd.Controllers
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue