コード例 #1
0
        public async Task <string> Approve([FromBody] IList <Review> reviews, Guid userID,
                                           string userName)
        {
            foreach (var review in reviews)
            {
                review.ReviewerID   = userID;
                review.ReviewerName = userName;
            }

            await _requestservice.Approve(reviews);

            return("Ok");
        }
コード例 #2
0
        public async Task <string> Approve([FromBody] IList <Review> reviews)
        {
            await _requestService.Approve(reviews);

            return("Ok");
        }
コード例 #3
0
 public IActionResult Approve(int id)
 {
     _requestService.Approve(id);
     return(Ok());
 }