public static int DeptId() { return(( HttpContext.Current?.User != null && HttpContext.Current?.User.Identity.Name != string.Empty) ? SiteInfo.User(UserIdentity()).DeptId : 0); }
public static User User() { return(SiteInfo.User(UserId())); }
public static int DeptId() { return(LoggedIn() ? SiteInfo.User(UserIdentity()).DeptId : 0); }