Ejemplo n.º 1
0
        public async Task <ActionResult> GetSpecificPlannedPurchase(long purchaseId)
        {
            PlannedPurchaseDTO fetchedPurchase = await plannedPurchaseRepository.GetPlannedPurchaseByIdAsync(purchaseId);

            if (fetchedPurchase == null)
            {
                return(NotFound());
            }

            return(Ok(dtoMapper.Map <PlannedPurchase>(fetchedPurchase)));
        }