public async Task <ActionResult <Sale> > GetSale(long id) { var sale = await _repository.FindAsync(id); if (sale == null) { return(NotFound()); } return(sale); }