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