public static bool IsAuthorizedUser(Guid userID) { var auth = new DLBase <User>(); return(bool.Parse(auth.ExecuteScalar(new { UserID = userID }, "Proc_ValidateToken").ToString())); }