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