public IActionResult EstornaClassificacaoDocumentoEntrada(string numero, string fornecedor) { var service = new DocumentoEntradaService(this.db, this.configuration); try { return(Ok(service.EstornaClassificacaoDocumentoEntrada(numero, fornecedor))); } catch (Exception) { throw; } }
public IActionResult LimpaItemsDocumentoEntrada(string numero, string fornecedor) { var service = new DocumentoEntradaService(this.db, this.configuration); try { return(Ok(service.clearItems(numero, fornecedor))); } catch (Exception) { throw; } }
public DocumentoEntradaController(DataContext db, IConfiguration configuration) { this.db = db; this.configuration = configuration; this.service = new DocumentoEntradaService(db, configuration); }