public static void Popedom(string powerStr, string messge) { AdministrorManager.CheckAdmin(); if (!PowerPass.isPass(powerStr)) { ChangeHope.WebPage.Script.AlertAndGoBack(messge); HttpContext.Current.Response.End(); } }
public static string Message(string powerStr) { string messge = ""; AdministrorManager.CheckAdmin(); if (!PowerPass.isPass(powerStr)) { messge = "ok"; } return(messge); }