public AhpEducationLine(EducationLine educationLineGiven, List <Entrant> entrantsGiven) { _educationLine = educationLineGiven; _entrants = entrantsGiven; _settings = new AhpEdLineSettings(); CalculateAll(); }
public AhpEducationLine(int edLineId) { _educationLine = _context.EducationLines.Find(edLineId); foreach (var entrInDb in _context.Entrants) { _entrants.Add(entrInDb); } _settings = new AhpEdLineSettings(); CalculateAll(); }