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