Exemple #1
0
        public async Task <IActionResult> Get(int photoId)
        {
            var comments = await _repo.GetComments(photoId);

            if (comments.Count() > 0)
            {
                return(Ok(comments));
            }
            else
            {
                return(NotFound());
            }
        }