public PlanningElementWS(DateTime inDateDebut, DateTime inDateFin, EvenementWS inEvenement, LieuWS inLieu, int inNbPlacesReservees) { DateDebut = inDateDebut; DateFin = inDateFin; Evenement = inEvenement; Lieu = inLieu; NombresPlacesReservees = inNbPlacesReservees; }
public PlanningElementWS(PlanningElement pe) { DateDebut = pe.DateDebut; DateFin = pe.DateFin; Guid = pe.Guid; MonEvenement = new EvenementWS(pe.MonEvenement); MonLieu = new LieuWS(pe.MonLieu); NombrePlacesReservees = pe.NombrePlacesReservees; }
public List<PlanningElementWS> GetPlanningElementsByPlace(LieuWS l) { List<PlanningElement> lpl = BusinessManager.Instance.GetAllPlanningElement(); List<PlanningElementWS> resLpl = new List<PlanningElementWS>(); lpl.Where(pl => pl.MonLieu.Guid == l.Guid); foreach (PlanningElement p in lpl) { resLpl.Add(new PlanningElementWS(p)); } return resLpl; }