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"); }
public async Task <string> Approve([FromBody] IList <Review> reviews) { await _requestService.Approve(reviews); return("Ok"); }
public IActionResult Approve(int id) { _requestService.Approve(id); return(Ok()); }