コード例 #1
0
        public async Task <NewSummary> Delete(int id)
        {
            IReservation reservation = await this.reservationRepo.GetById(id);

            if (reservation == null)
            {
                return(new NewSummary(false, $"Reservation with id {id} does not exist"));
            }

            return(await deleteReservation.Delete(id));
        }