public async Task <Order> ConfirmOrderAsync(int orderId, int librarianId)
        {
            Order orderInDb = await _orderRepo.GetByIdToEditAsync(orderId);

            if (orderInDb == null)
            {
                throw new ApiException(MessagesResource.ORDER_NOT_FOUND, 404);
            }

            orderInDb.LibrarianId = librarianId;
            orderInDb.IsBorrowed  = true;

            return(await _orderRepo.EditAsync(orderInDb));
        }