Пример #1
0
        public async Task <Response> Get(string commentId, string id)
        {
            Response response = await _responseRepository.GetById(id);

            if (response == null)
            {
                throw HttpError.NotFound("");
            }

            if (response.CommentId != commentId)
            {
                throw HttpError.NotFound("");
            }

            return(response);
        }