public async Task <bool> DeletePurchaseById(int id)
        {
            if (await _repository.DeletePurchaseById(id))
            {
                return(true);
            }

            throw new Exception();
        }