public IActionResult DeleteFinanceSalesInvoiceDetail(long id) { FinanceSalesInvoiceDetail fin = InvDetail_repo.Find(id); if (fin == null) { return(NotFound()); } InvDetail_repo.Delete(fin); return(Ok()); }
public IActionResult AddFinanceSalesInvoiceDetail([FromBody] FinanceSalesInvoiceDetail model) { InvDetail_repo.Add(model); return(new OkObjectResult(new { FinanceSalesInvoiceDetailID = model.FinanceSalesInvoiceDetailId })); }