Click here to Skip to main content
15,880,469 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Another NetCore question Pin
pkfox4-Jun-20 10:54
professionalpkfox4-Jun-20 10:54 
QuestionCheckboxList Styling Problem Pin
feelblue8730-May-20 6:14
feelblue8730-May-20 6:14 
QuestionNet Core API question Pin
pkfox22-May-20 5:28
professionalpkfox22-May-20 5:28 
AnswerRe: Net Core API question Pin
Richard Deeming22-May-20 5:56
mveRichard Deeming22-May-20 5:56 
GeneralRe: Net Core API question Pin
pkfox22-May-20 7:05
professionalpkfox22-May-20 7:05 
QuestionHow do I multiple group in Active Directory ? Pin
ugurarslanm19-May-20 4:58
ugurarslanm19-May-20 4:58 
QuestionHow to invoke POST method by adding [FromBody] attribute in Postman tool Pin
meeram3917-May-20 23:33
professionalmeeram3917-May-20 23:33 
AnswerRe: How to invoke POST method by adding [FromBody] attribute in Postman tool Pin
Richard Deeming18-May-20 1:12
mveRichard Deeming18-May-20 1:12 
The [FromBody] attribute is used to read a single simple value from the request body:
Parameter Binding in ASP.NET Web API - ASP.NET 4.x | Microsoft Docs[^]

Given your signature, the from parameter needs to be a query-string parameter, and the request body needs to be simply:
"90909090900"

If you want the API to match the request you've shown, use a model to represent the parameters:
C#
public class ServiceChatsModel
{
    public string To { get; set; }
    public string From { get; set; }
}

[HttpPost]
[Route("api/CustomerService")]
public HttpResponseMessage  GetServiceChats(ServiceChatsModel model)
{
    ...




"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

GeneralRe: How to invoke POST method by adding [FromBody] attribute in Postman tool Pin
meeram3918-May-20 1:19
professionalmeeram3918-May-20 1:19 
GeneralRe: How to invoke POST method by adding [FromBody] attribute in Postman tool Pin
Stefanie Eberhardt19-May-20 4:29
Stefanie Eberhardt19-May-20 4:29 
QuestionAPI fail to use PUT method Pin
feelblue8717-May-20 22:42
feelblue8717-May-20 22:42 
AnswerRe: API fail to use PUT method Pin
Richard Deeming18-May-20 1:06
mveRichard Deeming18-May-20 1:06 
Questionasp.net Pin
lankaudaranga16-May-20 22:01
lankaudaranga16-May-20 22:01 
AnswerRe: asp.net Pin
Mycroft Holmes17-May-20 12:14
professionalMycroft Holmes17-May-20 12:14 
Questiondévelopper et utiliser le web service Pin
Member 1483395815-May-20 21:27
Member 1483395815-May-20 21:27 
Questiondévelopper et utiliser le web service Pin
Member 1483395815-May-20 21:27
Member 1483395815-May-20 21:27 
Questioninsert data into list from form and Pin
Member 1322055210-May-20 23:41
Member 1322055210-May-20 23:41 
Rant[REPOST] insert data into list from form and Pin
Richard Deeming11-May-20 3:18
mveRichard Deeming11-May-20 3:18 
QuestionIServiceCollection / DependencyInjection issue Pin
Super Lloyd7-May-20 20:39
Super Lloyd7-May-20 20:39 
AnswerRe: IServiceCollection / DependencyInjection issue Pin
Richard Deeming10-May-20 22:01
mveRichard Deeming10-May-20 22:01 
GeneralRe: IServiceCollection / DependencyInjection issue Pin
Super Lloyd11-May-20 19:19
Super Lloyd11-May-20 19:19 
QuestionSet route in net core api Pin
pkfox5-May-20 7:20
professionalpkfox5-May-20 7:20 
AnswerRe: Set route in net core api Pin
Richard Deeming5-May-20 8:41
mveRichard Deeming5-May-20 8:41 
GeneralRe: Set route in net core api Pin
pkfox5-May-20 10:06
professionalpkfox5-May-20 10:06 
AnswerRe: Set route in net core api Pin
jkirkerx7-May-20 8:58
professionaljkirkerx7-May-20 8:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.