Use file scoped namespace
This commit is contained in:
@@ -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; }
|
||||||
|
}
|
||||||
@@ -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();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -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; }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user