public string GetUsernameOrDefault() { string username = string.Empty; try { username = HttpContext.User.Identity.Name; } catch { } return !string.IsNullOrWhiteSpace(username) ? username : "DEFAULT"; }