I have to columns AppStart and Duration I wish to add the duration to the App Start but I am using linq.
I am using the following to get the appointments and that works fine but I need to return a new field in this called AppEnd which is based on the duration field which can be 15,25,30,60.
This is using linq and is asking how to add a new field within link based on another field.
List<Appointment> appointments = new List<Appointment>();
appointments= _sourceEntities.Appointments.Where(a=> a.ApptDate.Year ==
currentDate.Year && a.ApptDate.Month == currentDate.Month && a.ApptDate.Day
== currentDate.Date.Day).ToList();
So my question is how would I create a new field AppEnd but also keep all the data intact from the above query ?.