public override async Task <ReservationDtoList> GetReservationen(Empty request, ServerCallContext context)
        {
            var response = new ReservationDtoList();

            response.Items.AddRange(await reservationenManager.GetAllReservationen().ConvertToDtos());
            return(response);
        }
Exemple #2
0
 public override async Task <ReservationDtoList> GetReservationen(Empty request, ServerCallContext context)
 {
     try
     {
         var response = new ReservationDtoList();
         response.Items.AddRange(await _manager.GetAll().ConvertToDtos());
         return(response);
     }
     catch (Exception)
     {
         throw new RpcException(new Status(StatusCode.Internal, "Internal error occured."));
     }
 }