//Group data
var lstGroupedPMs = (from lstPMItem in lstPMItemsDetails
group lstPMItem by lstPMItem.KRAType
into KRAMasterGroups
select new
{
KRAType = KRAMasterGroups.Key,
kraGroup = KRAMasterGroups,
templateName = performancetemplatedata.TemplateName,
positionID = performancetemplatedata.PositionID,
designation = performancetemplatedata.Designation
});
json = JsonConvert.SerializeObject(lstGroupedPMs, Newtonsoft.Json.Formatting.Indented);
jObject = JObject.Parse("{\"data\": " + json + "}");
var lstGroupedPMs = (from lstPMItem in lstPMItemsDetails
group lstPMItem by lstPMItem.KRAType
into KRAMasterGroups
select new
{
KRAType = KRAMasterGroups.Key,
kraGroup = KRAMasterGroups,
templateName = performancetemplatedata.TemplateName,
positionID = performancetemplatedata.PositionID,
designation = performancetemplatedata.Designation
});
json = JsonConvert.SerializeObject(lstGroupedPMs, Newtonsoft.Json.Formatting.Indented);
jObject = JObject.Parse("{\"data\": " + json + "}");
No comments:
Post a Comment