Skip to content
This repository has been archived by the owner on Jun 25, 2022. It is now read-only.

Commit

Permalink
fix(back-end): Map the correct type in GetProductInvoices
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosPavajeau committed Dec 29, 2020
1 parent 2287ec6 commit e4dc91f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Kaizen/Controllers/ProductInvoicesController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public ProductInvoicesController(IProductInvoicesRepository productInvoicesRepos
public async Task<ActionResult<IEnumerable<ProductInvoiceViewModel>>> GetProductInvoices()
{
List<ProductInvoice> productInvoices = await _productInvoicesRepository.GetAll().ToListAsync();
return Ok(_mapper.Map<IEnumerable<ProductInvoiceDetailViewModel>>(productInvoices));
return Ok(_mapper.Map<IEnumerable<ProductInvoiceViewModel>>(productInvoices));
}

[HttpGet("{id}")]
Expand Down

0 comments on commit e4dc91f

Please sign in to comment.