2018-03-28 22:08:49 +00:00
|
|
|
|
using BotSharp.Core.Entities;
|
2017-12-30 20:26:35 +00:00
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
2018-03-28 22:08:49 +00:00
|
|
|
|
namespace BotSharp.Core.RestApi
|
2017-12-30 20:26:35 +00:00
|
|
|
|
{
|
|
|
|
|
|
public class EntityController : EssentialController
|
|
|
|
|
|
{
|
|
|
|
|
|
[HttpPost]
|
2018-03-21 21:07:43 +00:00
|
|
|
|
public string CreateEntity([FromBody] Entity entity)
|
2017-12-30 20:26:35 +00:00
|
|
|
|
{
|
|
|
|
|
|
return entity.Id;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|