Compare commits

..

6 Commits

Author SHA1 Message Date
0b5a963c11 Merge branch 'main' into feature/refactor-to-dotnet-8-standards
# Conflicts:
#	TemplateNETService/Controllers/ServiceController.cs
2026-01-28 13:17:08 +01:00
67627fe227 Use HttpGet for route definition 2026-01-28 13:16:19 +01:00
a3c2dfc3eb feature/refactor-to-dotnet-8-standards (#2)
Reviewed-on: #2
2026-01-28 12:15:11 +00:00
2762a7c0a4 Optimize imports 2026-01-28 13:14:30 +01:00
f69a2865a2 Use file scoped namespace 2026-01-28 13:14:11 +01:00
9c162e1752 Merge pull request 'Refactor template to meet .NET 8 standards' (#1) from feature/refactor-to-dotnet-8-standards into main
Reviewed-on: #1
2026-01-27 13:23:03 +00:00
4 changed files with 19 additions and 36 deletions

View File

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

View File

@@ -1,16 +1,14 @@
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")]
[HttpGet("ping")]
public IActionResult GetStatus()
{
return Ok();
}
}
}

View File

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

View File

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