GetClient.cs 490 B

12345678910111213141516171819
  1. using API_sm.BaseConnection;
  2. using Microsoft.AspNetCore.Mvc;
  3. using API_sm.ModelBase;
  4. namespace API_sm.Controllers
  5. {
  6. [Route("api/[controller]")]
  7. [ApiController]
  8. [ApiExplorerSettings(GroupName = "Поиск")]
  9. public class GetClient
  10. {
  11. /*ApplicationContext db = new ApplicationContext();
  12. [HttpGet]
  13. public IActionResult Index(string name)
  14. {
  15. return Ok(db.client.Where(x => x.Name.Contains(name)).ToList());
  16. }*/
  17. }
  18. }