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
Bongani Gumede
NA
63
17.6k
Lambda expression good people please help me on the follow
Jul 20 2018 1:47 AM
if (collection["Department"] == "" || collection["Department"] == null || collection["Department"] == "0")
{
var Department = (from x in db.Departments
where x.Id == 1
orderby x.description ascending
select x.Id).First();
Result.DepartmentId = Department;
}
else
{
var Department = (from x in db.Departments
where x.description == collection["Department"]
orderby x.description ascending
select x.Id).First();
Result.DepartmentId = Department;
}
Reply
Answers (
3
)
looping for multiple texbox to generate data.
Need code to write a multiple lines in csv file simantanosly