1: using System;
2: using System.Collections.Generic;
3: using System.Linq;
4: using System.Web.Http;
5: using System.Web.Http.Results;
6:
7: namespace Ia.Ngn.Cl.Model.Api.Controller
8: {
9: ////////////////////////////////////////////////////////////////////////////
10:
11: /// <summary publish="true">
12: /// Default API Controller class of Next Generation Network'a (NGN's) model.
13: /// </summary>
14: ///
15: /// <remarks>
16: /// Copyright © 2006-2017 Jasem Y. Al-Shamlan (info@ia.com.kw), Integrated Applications - Kuwait. All Rights Reserved.
17: ///
18: /// This library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
19: /// the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
20: ///
21: /// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
22: /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
23: ///
24: /// You should have received a copy of the GNU General Public License along with this library. If not, see http://www.gnu.org/licenses.
25: ///
26: /// Copyright notice: This notice may not be removed or altered from any source distribution.
27: /// </remarks>
28: public class Default2Controller : ApiController
29: {
30: ////////////////////////////////////////////////////////////////////////////
31:
32: /// <summary>
33: /// Echo
34: /// </summary>
35: [HttpGet]
36: [Route("api/time")]
37: public string Time()
38: {
39: string time;
40:
41: time = DateTime.UtcNow.ToString();
42:
43: return time;
44: }
45:
46: ////////////////////////////////////////////////////////////////////////////
47: ////////////////////////////////////////////////////////////////////////////
48: }
49: }