COMMUNITY: How to properly ask a question on Forums
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forum guidelines
Arvind Singh Baghel
595
1.7k
72.5k
Create generic response for API
Feb 10 2017 12:41 AM
I am creating a WCF service, which has many classes and many methods like GetCustomer, SaveCustomer, SaveTransaction etc. when we consume this service and call any method i want to return a generic response message. e.g. if i call SaveCustomer then in my response i want to send responseCode=SUC (its for request is successfuly came or not) result=Accepted, responseMessage="Customer data saved" so i created class like blow:
public string result { get; set; }
public string responseCode { get; set; }
public string responseMessage { get; set; }
and want to return that customer or transaction object also, if customer object came in request then my above class object plus customer that object if transaction object came then my above class object plus that trasaction object. there are many other classes also
thanks
Reply
Answers (
1
)
How can i add a tab in a text ( string)
complete significance of dot net.
"