Yes, I have asked a question only.
I am new to angularjs, so could not relate what exactly you are asking. I 
am trying to provide some more details in it.
 Example:
.Net API class
[Seriazable]
public class MyClass
{
[XMLElement(Name="FNAME", Order=0)]
public string FirstName{get;set;}
[XMLElement(Name="LNAME", Order=1)]
public string LastName{get;set;}
}

Controller Method:
[HttpPost]
[Route("api/Save/Data")]
public HttpResponseMessage SaveMyData(MyClass data) -- In this method , 
data is null though it is sent from client with some values
{
// exact logic
return Request.CreateResponse(Myresponse);
}
 UI Controller:
$scope.MyClass ={
FirstName:"Sonali",
LastName:"Das"
}
$http.post(url,$scope.MyClass).then(function(response){
});

On Wednesday, 10 January 2018 21:55:23 UTC+5:30, Sonali Das wrote:
>
> Hi,
>  I have created a custom object and sending that to web api by $http.post 
> method. The object is marked as serializable at API side for generation of 
> xml out of that. Is thos the reason, the object is not getting identified 
> properly at controller when sending via post method?
>
> please advise. It is a bit urgent.
> Thanks,
> Sonali Das
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to