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
kris
NA
26
20.2k
c# how can return value from class?
Mar 24 2015 6:23 AM
I have class within class
public class List
{
public int RecordCount { get; set; }
public IEnumerable<ServiceElementItem> ServiceElement { get; set; }
}
public class ServiceElementItem
{
public int ServiceElementId { get; set; }
public string ServiceElementBusinessId { get; set; }
public string Description { get; set; }
public string CustomerName { get; set; }
public string SiteName { get; set; }
public string Location { get; set; }
}
And this should return back:
RecordCount
:
1
ServiceElements
:
[
1
]
0:
{
ServiceElementId
:
1
ServiceElementBusinessId
: "
TEST
"
Description
: "
Direct
"
AlternateId
: "
12345
"
CustomerName
: "
TEST CUSTOMER
"
SiteName
: "
TEST SITE
"
}
but it is returning back
RecordCount
:
1
ServiceElements
:null
How can i solve this in c#
Reply
Answers (
1
)
Highlight text in textbox2,selected word in textbox1
how could i insert data in database in asp.net using 3 tier