public IActionResult TagManager(int id) { var vm = new PostTagViewModel(); vm.Tags = _tagRepository.GetAllTags(); vm.PostTags = _postTagRepository.GetAllPostTags(); vm.Post = _postRepository.GetUserPostById(id, GetCurrentUserProfileId()); return(View(vm)); }