Exemplo n.º 1
0
 public async Task <ActionResult <IList <LogDTO> > > GetPerItem(int id)
 {
     try
     {
         return(Ok(await service.GetPerItem(id)));
     }
     catch (Exception)
     {
         return(NotFound($"Item with ID {id} not found!"));
     }
 }