Exemplo n.º 1
0
        public async Task <IActionResult> Delete(int id)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest());
            }

            var detalleComprobante = await _detalleComprobanteServicio.GetById(id);

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

            await _detalleComprobanteServicio.Delete(detalleComprobante);

            return(Ok(detalleComprobante));
        }