Esempio n. 1
0
 public ActionResult <Comment> AddComment([FromBody] AddCommentRequest Request)
 {
     return(_imageService.AddComment(Request.ImageId, Request.CommentContent, User.FindFirstValue(ClaimTypes.NameIdentifier), User.Claims.Where(e => e.Type == "name").Select(e => e.Value).SingleOrDefault()));
 }