2 Commits

Author SHA1 Message Date
b4eb144f12 feature/refactor-to-dotnet-8-standards (#3)
Reviewed-on: #3
2026-01-28 12:17:29 +00:00
a3c2dfc3eb feature/refactor-to-dotnet-8-standards (#2)
Reviewed-on: #2
2026-01-28 12:15:11 +00:00
4 changed files with 19 additions and 36 deletions

View File

@@ -1,15 +1,8 @@
using System; using TemplateNETService.Models;
using System.Collections.Generic;
using System.Linq; namespace TemplateNETService.Business;
using System.Text;
using System.Threading.Tasks;
using TemplateNETService.Models;
namespace TemplateNETService.Business
{
public class Config public class Config
{ {
public static General general { get; set; } public static General general { get; set; }
} }
}

View File

@@ -1,16 +1,14 @@
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace TemplateNETService.Controllers namespace TemplateNETService.Controllers;
{
[ApiController] [ApiController]
[Route("api")] [Route("api")]
public class ServiceController : ControllerBase public class ServiceController : ControllerBase
{ {
[HttpGet] [HttpGet("ping")]
[Route("ping")]
public IActionResult GetStatus() public IActionResult GetStatus()
{ {
return Ok(); return Ok();
} }
} }
}

View File

@@ -1,13 +1,6 @@
using System; namespace TemplateNETService.Models;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TemplateNETService.Models
{
public class General public class General
{ {
public int ThisPort { get; set; } public int ThisPort { get; set; }
} }
}

View File

@@ -1,6 +1,5 @@
using System.Reflection; using System.Reflection;
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Hosting;