public static bool Validate(Departure f) { if (PlaneService.Validate(f.Plane) && CrewService.Validate(f.Crew) && FlightService.Validate(f.Flight)) { return(true); } return(false); }
public StewardessService() { _uri += "stewardesses"; CrewService = new CrewService(); var querry = (CrewService.GetAll()).Result.Select(f => f.Id); CrewIds = new ObservableCollection <int>(querry); }