public async Task <IActionResult> AddTag(PostTag postTag) //!!!! почему тут приходит значения только для Id, для самих Post и Tag - значение -Null. Но все выходит ок { var post = await _postService.GetOrNullWithTagsBy(postTag); if (_postService.IsPostExists(post.Id)) { return(RedirectToAction(nameof(Index))); } await _postService.AddTagToPost(post, postTag.TagId); return(RedirectToAction(nameof(Index))); }