public bool DeleteSport(int sportId) { var model = new bool(); using (var client = new ToteService.BetListServiceClient()) { try { client.Open(); model = client.DeleteSport(sportId); client.Close(); } catch (FaultException <CustomException> customEx) { log.Error(customEx.Message); return(false); } catch (CommunicationException commEx) { log.Error(commEx.Message); return(false); } } return(model); }