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
BKS Saha
NA
44
18.7k
How to convert one list to multidimensional array?
Dec 6 2017 4:04 AM
public
JsonResult AllListofMainDivisionDesignation() {
List<HrDesignation> designation =
new
List<HrDesignation>();
var designationgroup = db.HrDesignationGroup.Where(p=>p.Rank==2).ToList();
foreach
(var des
in
designationgroup)
{ var desig = db.HrDesignation.Where(i=> i.DesignationGroupId == des.DesignationGroupId).OrderBy(r => r.Rank).ToList();
designation.AddRange(desig);}
HrDesignation[][] arrays = designation.Select(a =>a.ToArray()).ToArray();
return
Json(arrays, JsonRequestBehavior.AllowGet);
}
Reply
Answers (
8
)
How to fix sanitize the parameters of SqlCommand?
how to put label and textbox inside nested grid in c# ASP??