Use file scoped namespace

This commit is contained in:
2026-01-28 13:14:11 +01:00
parent 9c162e1752
commit f69a2865a2
3 changed files with 18 additions and 24 deletions

View File

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

View File

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

View File

@@ -4,10 +4,7 @@ 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; }
}