Blog/Contracts/Api/Controllers/BaseController.cs
2024-01-17 01:08:20 +03:00

25 lines
No EOL
492 B
C#

using Microsoft.AspNetCore.Mvc;
namespace Api.Controllers;
[ApiController]
[Route("api/[controller]")]
public abstract class BaseController<T> : Controller
{
[HttpGet(nameof(Create))]
public async Task<ActionResult> Create()
{
//await $"scripts/00magic.sh --param ".Bash();
return Ok(new {id = 1});
}
/*public async Task<ActionResult> Get(T model)
{
}
public async Task<ActionResult> Update(T model)
{
}*/
}