public async Task <IActionResult> AddRating([FromRoute] int id, [FromQuery] int value)
        {
            if (value < 1 || value > 5)
            {
                return(BadRequest(new { message = "Values for rating must range from 1 to 5" }));
            }

            var link = await _linkRepository.GetLinkByIdAsync(id);

            if (link == null)
            {
                return(NotFound());
            }

            return(Ok(await _linkRepository.AddRatingAsync(id, value)));
        }