// Business Logic pass through code to Delete a Session by ID public bool DeleteSessionById(int id) { try { using (var repository = new SessionsRepository()) { return(repository.DeleteById(id)); } } catch (Exception ex) { //Log exception error _loggingHandler.LogEntry(ExceptionHandler.GetExceptionMessageFormatted(ex), true); throw new Exception("BusinessLogic:SessionsBusiness::DeleteSessionById::Error occured.", ex); } }