From a8b6a97ce7d74ed945e09d08de8fada0435682f6 Mon Sep 17 00:00:00 2001 From: birendra.kumar Date: Wed, 15 Jan 2020 14:50:30 +0530 Subject: [PATCH] Copyright Year dynamically updated --- 400-SOURCECODE/AIAHTML5.API/Controllers/ConfigurationController.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/400-SOURCECODE/AIAHTML5.API/Controllers/ConfigurationController.cs b/400-SOURCECODE/AIAHTML5.API/Controllers/ConfigurationController.cs index 7199fc0..892bbab 100644 --- a/400-SOURCECODE/AIAHTML5.API/Controllers/ConfigurationController.cs +++ b/400-SOURCECODE/AIAHTML5.API/Controllers/ConfigurationController.cs @@ -13,7 +13,10 @@ namespace AIAHTML5.API.Controllers [HttpGet] public HttpResponseMessage GetConfigurationvalues() { - int current_year = Int32.Parse(ConfigurationManager.AppSettings["Copyrightyear"]); + // int current_year = Int32.Parse(ConfigurationManager.AppSettings["Copyrightyear"]); + + int current_year = DateTime.Now.Year; + HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, current_year); return response; } -- libgit2 0.21.4