public async Task <ActionResult <Photo> > FindByTitle(string title) { Photo ph = await photosService.FindByTitle(title); if (ph == null) { return(NotFound()); } return(ph); }
public override async Task <FindByTitleReply> FindByTitle(FindByTitleRequest request, ServerCallContext context) { Photo ph = await photosService.FindByTitle(request.Title); return(ph.ToFindByTitleReply()); }