skip to Main Content

Asp.net – how the Visual studio not accepting my code

using System; using System.ComponentModel.DataAnnotations; using Microsoft.AspNetCore.Mvc; using Simple_website.Services namespace simple_website.Controllers { public class UserViewModel { public Guid Id { get; set; } public string Login { get; set; } public string FirstName { get; set; } public string LastName {…

VIEW QUESTION

Does @DeleteMapping work with Spring Boot?

why is the DELETE query not working for me. @DeleteMapping("/delete") public String deleteUser(@RequestParam("userId") long id) { userService.deleteUser(id); return "redirect:/"; } There is a form for this mapping, but it returns me the Request method 'GET' is not supported. <form th:object="${users}">…

VIEW QUESTION

Where should application logic go in Laravel?

Currently, whenever a user opens a URL '/users/new', I use the following route that leads to the controller called 'UsersController': Route::post('/users/new', [AppHttpControllersApiUserController::class, 'newUser']); Inside the Controller, the 'newUser' method is responsible for sending the request data (name_user, email_user, password_user) to…

VIEW QUESTION
Back To Top
Search