public Manager(IGuests guests, ICompanies companies, ITemplates templates) { _guests = guests; _companies = companies; _templates = templates; }
private readonly IGuests _Guests; //Its a Singleton, so this is just reference to a single instance public RsvpFormController(IGuests aGuest) { _Guests = aGuest ?? throw new ArgumentNullException(nameof(aGuest)); }
private readonly IGuests _Guests; //Its a Singleton, so this is just reference to a single instance public ListResponsesController(IGuests aGuests) { _Guests = aGuests ?? throw new ArgumentNullException(nameof(aGuests)); }
public GuestsController(IGuests guests) { _guests = guests; }