public IActionResult GetSaleBySaleId(int id) { var sale = _SaleManager.GetSaleWithDetailsById(id); if (sale == null) { return(BadRequest(new { error = "Sale Item Can not Found!!" })); } return(Ok(sale)); }