public MarriageViewer(string connStr, Marriage matrimoni) { _personaRepository = new PersonRepository(connStr); _matrimoniRepository = new MarriageRepository(connStr); _fillRepository = new SonRepository(connStr); _matrimoni = matrimoni; }
public UpwardTreeBuilder( PersonRepository personRepository, MarriageRepository marriageRepository, SonRepository sonRepository) { _personRepository = personRepository; _marriageRepository = marriageRepository; _sonRepository = sonRepository; }
public PersonController( UserManager <ApplicationUser> userManager, ILoggerFactory loggerFactory, PersonRepository personRepository, MarriageRepository marriageRepository, SonRepository sonRepository) { _userManager = userManager; _logger = loggerFactory.CreateLogger <ManageController>(); _personRepository = personRepository; _marriageRepository = marriageRepository; _sonRepository = sonRepository; }