using Microsoft.AspNetCore.Mvc; namespace API_development.Controllers { [Route("/api/[controller]")] [ApiController] [ApiExplorerSettings(GroupName = "Действия с пользователем")] public class UsersController : ControllerBase { ApplicationContext db = new ApplicationContext(); [HttpGet] public IActionResult Index() { return Ok(db.tbUsers.ToList()); } } }