public IActionResult Details(int id) { var sales = _salesinvoiceService.GetById(id); if (sales == null) { return(NotFound()); } return(Ok(sales)); }