TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
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
Forums
Monthly Leaders
Forum guidelines
veerendra kumar
NA
47
20.5k
WEB API
Apr 29 2015 9:45 AM
i am using WEB API concept in asp.net application.
in my API contain one method is post with two argument.
ex:
public string Post(dynamic obj,int type)
{
if(type==1)
{
INSERT DATA INTO THE EMP TABLE. NOW obj Conatin
ename, eid,salary.
....
like.
Empentity.Emp.add(emp);
return true;
}
else
{
INSERT DATA INTO THE Dept TABLE. NOW obj Conatin
Dname, location
Empentity.Dept.add(emp):
return true;
}
}
how to convert dynamic object data to emp or dept object type. my data pass in JSON format.
Reply
Answers (
1
)
Wireless network monitor
How to parse json array in C# data coming from webservices