You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
711 B
26 lines
711 B
using System.Data;
|
|
using SimpleDapper;
|
|
|
|
namespace Tiobon.Core.Api.Controllers;
|
|
|
|
/// <summary>
|
|
/// Ghra_Grade
|
|
/// </summary>
|
|
[Route("api/[controller]")]
|
|
[ApiController, GlobalActionFilter]
|
|
[Authorize(Permissions.Name), ApiExplorerSettings(GroupName = Grouping.GroupName_Ghra)]
|
|
public class TestController : BaseController<IGhra_GradeServices, Ghra_Grade, Ghra_GradeDto, InsertGhra_GradeInput, EditGhra_GradeInput>
|
|
{
|
|
public TestController(IGhra_GradeServices service) : base(service)
|
|
{
|
|
}
|
|
|
|
[HttpGet]
|
|
public async Task<ServiceResult> Test()
|
|
{
|
|
|
|
string sql = "SELECT * FROM Ghra_Grade";
|
|
DataTable dt = await DbAccess.GetDataTableAsync(sql);
|
|
return Success();
|
|
}
|
|
} |