42 lines
736 B
C#
42 lines
736 B
C#
using Asp.Versioning;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using StoreHub.KJDWebService.Services;
|
|
|
|
namespace StoreHub.KJDWebService.Controllers
|
|
{
|
|
[ApiController]
|
|
[ApiVersionNeutral]
|
|
[Route("ToolService/[action]")]
|
|
public class ToolController : BaseApiController
|
|
{
|
|
private readonly ToolService _toolService;
|
|
|
|
public ToolController(ToolService toolService)
|
|
{
|
|
_toolService = toolService;
|
|
}
|
|
|
|
[AcceptVerbs("GET", "POST")]
|
|
public IActionResult hello_world()
|
|
{
|
|
|
|
return Content("Hello World");
|
|
|
|
}
|
|
|
|
[AcceptVerbs("GET", "POST")]
|
|
public IActionResult create_table()
|
|
{
|
|
|
|
//return;
|
|
_toolService.CreateTable();
|
|
|
|
return Content("");
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|