Без опису

1234567891011121314151617181920212223242526
  1. using Logger.Services;
  2. using Logger.Services.Interfaces;
  3. using Microsoft.AspNetCore.Mvc;
  4. using Microsoft.Extensions.Logging;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Linq;
  8. using System.Threading.Tasks;
  9. namespace Logger.API.Controllers
  10. {
  11. [ApiController]
  12. [Route("api/[controller]")]
  13. public class WeatherForecastController : ControllerBase
  14. {
  15. public WeatherForecastController()
  16. {
  17. }
  18. [HttpGet("helloworld/{id}/{random}")]
  19. public IActionResult Helloworld([FromRoute] string id, [FromRoute] string random)
  20. {
  21. return Ok(id+"-"+random);
  22. }
  23. }
  24. }

Powered by TurnKey Linux.