Пример #1
0
        public ActionResult <FacturaViewModel> getByProductoId(string id)
        {
            Factura response = facturaService.ConsultarByProductoId(id);

            if (response == null)
            {
                return(NotFound());
            }
            FacturaViewModel facturaViewModel = new FacturaViewModel(response);

            return(facturaViewModel);
        }