public string CeliName(string Name) { if (Session[Util.ProjectConfig.ADMINUSER] == null) { return(""); } return(ServerManager.CeliName(Name).ToString()); }
public string updateServer(int id, string serverName, string upName, string ip1, string ip2, string ip3, string area, string status, string reMark) { if (Session[Util.ProjectConfig.ADMINUSER] == null) { return(""); } string json = ""; if (serverName != upName) { if (ServerManager.CeliName(serverName)) { json = "stop"; } } if (json != "stop") { DateTime time = DateTime.Now; json = BLL.ServerManager.updateServer(id, serverName, ip1, ip2, ip3, area, status, time, reMark).ToString(); } return(json); }