เพิ่ม Code ในการแยก api ออกมาเป็น ClassLibrary และดึงไปใช้ในแต่ละ project

This commit is contained in:
Suphonchai Phoonsawat 2023-06-28 11:20:58 +07:00
parent 00f795483a
commit ea6cfb0e98
6 changed files with 71 additions and 1 deletions

View file

@ -0,0 +1,21 @@
using BMA.EHR.Domain.Common;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BMA.EHR.API.Command
{
[Route("api/test")]
[ApiController]
public class TestController : BaseController
{
[HttpGet]
public ActionResult<ResponseObject> Get()
{
return Success("Test", new { data = "11111" });
}
}
}