SHARE
TWEET

Untitled

a guest Jun 19th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top