public async Task <IActionResult> PostLink([FromBody] Link link) { if (link == null) { return(BadRequest(new { message = "No Link object found in request body" })); } return(Ok(await _linkRepository.AddLinkAsync(link))); }