public HomeController(IRepositoryOfTopics repository) { _repository = repository; }
public TopicController(IRepositoryOfTopics topicRepo, IRepositoryOfMessages msgRepo, UserManager <IdentityUser> userManager) { _topicRepo = topicRepo; _msgRepo = msgRepo; _userManager = userManager; }