public void Error(Exception ex) { ErrorEntity entity = new ErrorEntity(); FillBase(entity); entity.ErrorMessage = GetErrorMsg(ex); Log(entity); }
private void LogError(object errorEntity) { ErrorEntity entity = (ErrorEntity)errorEntity; Log(entity); }