Thursday, January 8, 2015

Update a List


shipmentDto.ShipmentAttachmentsList.RemoveAll(x=> x.IsReserved == true);



//foreach(var list in shipmentDto.ShipmentAttachmentsList)
                        //{
                        //    if (list.IsReserved == false)
                        //    {
                        //        shipmentDto.ShipmentAttachmentsList.Where(x => x.IsReserved == false).FirstOrDefault();
                        //    }
                        //}


studentList = Database.Students.Where
(stu => stu.IsRemoved != 1 && studentIDList.Contains(stu.IID)).ToList();

No comments: