diff --git a/Controllers/RvlController.cs b/Controllers/RvlController.cs index 81dbb4c..6df29a5 100644 --- a/Controllers/RvlController.cs +++ b/Controllers/RvlController.cs @@ -156,11 +156,6 @@ throw new System.Exception("UNCOMMENT THIS FOR PRODUCTION"); } } - [HttpGet] - public ActionResult GetTest() - { - return Ok("hi"); - } [HttpGet("list/{siteId}")] public async Task GetList([FromRoute] long siteId) diff --git a/Models/License.cs b/Models/License.cs index 52810d3..ea4c84b 100644 --- a/Models/License.cs +++ b/Models/License.cs @@ -6,6 +6,9 @@ namespace rockfishCore.Models { public partial class License { + public License(){ + DtCreated=Util.DateUtil.NowAsEpoch(); + } public long Id { get; set; } public long CustomerId { get; set; } public long SiteId { get; set; } diff --git a/wwwroot/js/app.ravLicenses.js b/wwwroot/js/app.ravLicenses.js index b8d1832..ff24635 100644 --- a/wwwroot/js/app.ravLicenses.js +++ b/wwwroot/js/app.ravLicenses.js @@ -7,7 +7,7 @@ /*global $, app */ -app.ravLicenses = (function() { +app.ravLicenses = (function () { "use strict"; //---------------- BEGIN MODULE SCOPE VARIABLES -------------- var stateMap = {}, @@ -26,16 +26,16 @@ app.ravLicenses = (function() { //------------------- BEGIN PUBLIC METHODS ------------------- //CONFIGMODULE // - configModule = function(context) { + configModule = function (context) { stateMap.context = context.context; if (stateMap.context.params.id) { - stateMap.id = stateMap.context.params.id;//siteid + stateMap.id = stateMap.context.params.id; //siteid } }; //INITMODULE // - initModule = function($container) { + initModule = function ($container) { if (typeof $container === "undefined") { $container = $("#app-shell-main-content"); } @@ -46,28 +46,29 @@ app.ravLicenses = (function() { //=================== //Get licenses - app.api.get("rvl/list/"+ stateMap.id, function(res) { + app.api.get("rvl/list/" + stateMap.id, function (res) { if (res.error) { $.gevent.publish("app-show-error", res.msg); } else { var $appList = $("#rf-list"); - $appList.append('