feature/refactor-to-dotnet-8-standards #2

Merged
marvin.spiegel merged 2 commits from feature/refactor-to-dotnet-8-standards into main 2026-01-28 12:15:11 +00:00
3 changed files with 18 additions and 24 deletions
Showing only changes of commit f69a2865a2 - Show all commits

View File

@@ -5,11 +5,9 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using TemplateNETService.Models; using TemplateNETService.Models;
namespace TemplateNETService.Business namespace TemplateNETService.Business;
{
public class Config
{
public static General general { get; set; }
}
}
public class Config
{
public static General general { get; set; }
}

View File

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

View File

@@ -4,10 +4,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace TemplateNETService.Models public class General
{ {
public class General public int ThisPort { get; set; }
{
public int ThisPort { get; set; }
}
} }