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