Commit a8b6a97ce7d74ed945e09d08de8fada0435682f6
1 parent
01293e7f
Copyright Year dynamically updated
Showing
1 changed file
with
4 additions
and
1 deletions
400-SOURCECODE/AIAHTML5.API/Controllers/ConfigurationController.cs
... | ... | @@ -13,7 +13,10 @@ namespace AIAHTML5.API.Controllers |
13 | 13 | [HttpGet] |
14 | 14 | public HttpResponseMessage GetConfigurationvalues() |
15 | 15 | { |
16 | - int current_year = Int32.Parse(ConfigurationManager.AppSettings["Copyrightyear"]); | |
16 | + // int current_year = Int32.Parse(ConfigurationManager.AppSettings["Copyrightyear"]); | |
17 | + | |
18 | + int current_year = DateTime.Now.Year; | |
19 | + | |
17 | 20 | HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, current_year); |
18 | 21 | return response; |
19 | 22 | } | ... | ... |