public ActionResult <IEnumerable <RegisteredParentModel> > GetParents([FromRoute] int year)
        {
            var result = _registrationManager.GetRegisteredParents(year);

            return(Ok(result));
        }
 public byte[] GetRegisteredParents(int year) =>
 _csvWriter.GetAsCsv(_manager.GetRegisteredParents(year).ToList());