/// <summary> ///In constructor, we can get needed classes/interfaces. ///They are sent here by dependency injection system automatically. /// </summary> public TipsAppService(ITipsRepository tipsRepository, ITipsCategoriesRepository tipsCategoriesRepository) { _tipsRepository = tipsRepository; _tipsCategoriesRepository = tipsCategoriesRepository; }
public TipsController(ITipsRepository repo) { _repo = repo; }
public MatchesController(IMatchesRepository matchesRepository, ITipsRepository tipsRepository) { _matchesRepository = matchesRepository; _tipsRepository = tipsRepository; }