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