public async Task <ActionResult <Photo> > FindByTitle(string title)
        {
            Photo ph = await photosService.FindByTitle(title);

            if (ph == null)
            {
                return(NotFound());
            }
            return(ph);
        }
Exemplo n.º 2
0
        public override async Task <FindByTitleReply> FindByTitle(FindByTitleRequest request, ServerCallContext context)
        {
            Photo ph = await photosService.FindByTitle(request.Title);

            return(ph.ToFindByTitleReply());
        }