ConfigurationController.cs
655 Bytes
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using System.Configuration;
namespace AIAHTML5.API.Controllers
{
public class ConfigurationController : ApiController
{
[Route("api/Configuration/GetConfigurationvalues")]
[HttpGet]
public HttpResponseMessage GetConfigurationvalues()
{
int current_year = Int32.Parse(ConfigurationManager.AppSettings["Copyrightyear"]);
HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, current_year);
return response;
}
}
}