Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. public class Settings
  2. {
  3. public static readonly int MaxCount = 10000;
  4. public int CountryServer = 123; //Для теста
  5. public static readonly int BaseValue = 146;
  6. }
  7.  
  8. [Route("api/[controller]")]
  9. [ApiController]
  10. public class ServerController : ControllerBase
  11. {
  12. // GET: api/Server/action
  13. [HttpGet("[action]")]
  14. public IActionResult ServerSettings()
  15. {
  16. Settings settings = new Settings();
  17. return Ok (settings);
  18. }
  19. }
  20.  
  21. public class Settings
  22. {
  23. private static readonly int MaxCount = 10000;
  24. public int CountryServer = 123; //Для теста
  25. private static readonly int BaseValue = 146;
  26. public int maxCount = MaxCount;
  27. public int baseValue = BaseValue;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement