public static Guid?GetUserIDByUserName(string userName) { try { return(AspNetUser.GetUserIDByUserName(userName)); } catch (Exception ex) { ExceptionHandling.LogException(ref ex); return(null); } }