Beispiel #1
0
        public async Task <ActionResult <Vote> > GetVoteAsync(string id)
        {
            var result = await _votes.GetAsync(UserId, new nhitomiObject(ObjectType.Book, id));

            if (!result.TryPickT0(out var vote, out _))
            {
                return(ResultUtilities.NotFound(id));
            }

            return(vote.Convert(_services));
        }