public HomeController(IPartyInvitesR aPartyInvitesR) { _Repository = aPartyInvitesR ?? throw new ArgumentNullException(nameof(aPartyInvitesR)); // Repository now supplied by DI //_Repository = new PartyInvitesR(); }
public HomeController() { _Repository = new PartyInvitesR(); }