Esempio n. 1
0
 public int Vote([FromBody] VoteRequest req)
 {
     return(VoteApi.Vote(req.AnswerId, 1, req.Direction));
 }
 public int Vote(VoteRequest req)
 {
     return(VoteApi.Vote(req.ContentId, 1, req.Direction));
 }