Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

asp net route attribute vs httpget

Route is method unspecific, whereas HttpGet obviously implies that only GET requests will be accepted. Generally, you want to use the specific attributes: HttpGet, HttpPost, etc. Route should be used mostly on controllers to specify the base path for all actions in that controller. The one exception is if you're creating routes for exception handling / status code pages. Then, you should use Route on those actions, since requests via multiple methods could potentially be routed there.
Comment

PREVIOUS NEXT
Code Example
Csharp :: Game of two stack c# 
Csharp :: c# blazor update state 
Csharp :: how to print a word in C# 
Csharp :: asp.net core mvc razor page call pagemodel actio 
Csharp :: c# configurationmanager load from file 
Csharp :: unity shader blend 
Csharp :: BindableDynamicDictionary 
Csharp :: c# how to output array 
Csharp :: c# linq unique by property 
Csharp :: how to remove a parten transform unity 
Csharp :: c# create empty file if not exists 
Csharp :: CS0176 
Csharp :: c# object list contains object returns incorrect boolean 
Csharp :: How to do a comment in c# 
Csharp :: c# exec command output 
Csharp :: remove language folders build visual studio 
Csharp :: if statement to check if a time is between two times c# 
Csharp :: Implementing Banner Ads Unity 
Csharp :: you have the following c# code. stringbuilder sb = new stringbuilder(really long string); the really long string variable is a string in which a very long string is stored. 
Csharp :: replace bar c# 
Csharp :: c# extend array 
Csharp :: Package manager or PM cmd for dbcontext migration 
Csharp :: Propertychanged is not firing up when text is change 
Csharp :: An unhandled exception occurred during the execution of the current web request 
Csharp :: c# sort word 
Csharp :: create shortcut C# WPF 
Csharp :: nullable IList 
Csharp :: downloading a large file asp boilerplate (abp) 
Csharp :: BOTON PARA CAMBIAR DE VIEW ASP.NET 
Csharp :: unity control physics of multiple simulation 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =