Exemplo n.º 1
0
        public ReceiptHistoryDetailModel GetReceiptHistoryDetail(long userId, long receiptId)
        {
            var isReceiptExist = _receiptRepository.IsReceiptExist(receiptId, userId);

            if (!isReceiptExist)
            {
                throw _exception.ThrowException(System.Net.HttpStatusCode.BadRequest, "", "Det finns iget kvitto för denna användare.");
            }

            return(_receiptRepository.GetReceiptHistoryDetail(receiptId));
        }