Esempio n. 1
0
 public async Task <ActionResult <BookingItem> > Get(string id)
 {
     try
     {
         return(await bookings.GetSingleAsync(id));
     }
     catch (KeyNotFoundException e)
     {
         return(NotFound(new { error = e.Message }));
     }
 }