Hi,
I have a string returned from my wcf service whether some save was done or
not.
[OperationContract][WebInvoke(Method = WebRequestMethods.Http.Put, UriTemplate
= "/setvalue?id={id}
public string MyMethod(string id)
{
string status = "success";
//db call here -- insert data and return status
return status;
}
I am calling the above in my angular service which I am successfully doing
like:
public setvaluescenarioObj: (id: string): ng.IPromise<any> {
var url = mywcfurl;
return this._http.put<any>(url, '').then(r => {
//do something
});
}
The service which has the above function returns a promise.
How can I get the string status which is returned from the wcf service
--
You received this message because you are subscribed to the Google Groups
"AngularJS" 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 http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.