try
{
}
catch (Exception exception)
{
var declaringType = MethodBase.GetCurrentMethod().DeclaringType;
if (declaringType != null)
EventLogProvider.LogException(declaringType.Name,
MethodBase.GetCurrentMethod().Name, exception);
}