public bool DeleteDirectPurchase(int purchaseId) { try { _purchaseRepository.DeleteDirectPurchase(purchaseId); return(true); } catch (Exception ex) { fault.Result = false; fault.ErrorMessage = "Error in DeleteDirectPurchase method"; fault.ErrorDetails = ex.ToString(); throw new FaultException <FaultData>(fault); } }