Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Settings
- {
- public static readonly int MaxCount = 10000;
- public int CountryServer = 123; //Для теста
- public static readonly int BaseValue = 146;
- }
- [Route("api/[controller]")]
- [ApiController]
- public class ServerController : ControllerBase
- {
- // GET: api/Server/action
- [HttpGet("[action]")]
- public IActionResult ServerSettings()
- {
- Settings settings = new Settings();
- return Ok (settings);
- }
- }
- public class Settings
- {
- private static readonly int MaxCount = 10000;
- public int CountryServer = 123; //Для теста
- private static readonly int BaseValue = 146;
- public int maxCount = MaxCount;
- public int baseValue = BaseValue;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement