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