public async Task <IActionResult> Post(int postId, int tagId) { try { return(Ok(await _repository.AddToPostAsync(postId, tagId))); } catch (Exception ex) { return(StatusCode(500, ex)); } }