Ms_ Dev

Ms_ Dev

  • NA
  • 236
  • 92.5k

WEB API POST Method

Jan 13 2018 7:36 AM
Hi,
 
I have a HTTP POST method , i want to implement [FromURI] in my function:
  1.    
  2. public string Post([FromUri]Users user)  
  3. {  
  4.          //code   
  5. }  
  6.    
  7.   
  8. localhost address:   
  9.   
  10.  http://localhost:50006/api/user?FirstName=John&LastName=Doe  
 
after giving data in browser URL, it is not going to Post API Method.
 
Please help. 
 

Answers (5)