AddLicenseController.cs 1.04 KB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using AIAHTML5.Server.Models;
using System.Web.Http.Cors;
using System.Web.Cors;
using AIAHTML5.Server.Constants;
using log4net;

namespace AIAHTML5.Server.Controllers
{
    [EnableCors(origins: "http://localhost:92", headers: "*", methods: "*")]
    public class AddLicenseController : ApiController
    {
        // GET: api/AddLicense
        public IEnumerable<string> Get()
        {
            return new string[] { "value1", "value2" };
        }

        // GET: api/AddLicense/5
        public string Get(int id)
        {
            return "value";
        }

        // POST: api/AddLicense
        public void Post([FromBody]string value)
        {
        }

        // PUT: api/AddLicense/5
        public void Put(int id, [FromBody]string value)
        {
        }

        // DELETE: api/AddLicense/5
        public void Delete(int id)
        {
        }
    }
}