コード例 #1
0
        public override async Task <Empty> DeleteReservation(ReservationDto request, ServerCallContext context)
        {
            try
            {
                var reservation = request.ConvertToEntity();
                await _manager.DeleteEntity(reservation);

                return(new Empty());
            }
            catch (Exception)
            {
                throw new RpcException(new Status(StatusCode.Internal, "Internal error occured."));
            }
        }