Monday, October 18, 2021

Auto Mapper : LIST

  var param = new { OfficeID = OfficeID, CenterID = CenterID};

                var getData = ultimateReportService.GetDataWithParameter(param, "getCollectionEntryScreen");

                var detail = getData.Tables[0].AsEnumerable().Select(p => new OLRSAccChartMappingViewModel

                {

                    Id = p.Field<int>("Id"),

                    AccCodeOLRS = p.Field<string>("AccCodeOLRS"),

                    AccChartCode = p.Field<string>("AccCode")

                }).ToList();

No comments:

Post a Comment

Screen Record

 Windows Screen Record WindowsKey+ Alt + R Recording Starts.