public string UpdateLoginservers(string Id, string Webserverip, string Name, string Ip, string Status) { if (Session[Util.ProjectConfig.ADMINUSER] == null) { return(""); } Model.Loginservers loginservers = new Model.Loginservers(); loginservers.Id = Convert.ToInt32(Id); loginservers.Name = Name; loginservers.Ip = Ip; loginservers.Status = Convert.ToInt32(Status); loginservers.Webserverip = Webserverip; bool reval = LoginserversManager.UpdateLoginservers(loginservers); string json = ""; if (reval) { json = DAL.ObjectToJson.ObjectsToJson <Loginservers>(loginservers); } else { json = "none"; } return(json); }
public string AddLoginservers(string Webserverip, string Name, string Ip, string Status) { if (Session[Util.ProjectConfig.ADMINUSER] == null) { return(""); } Model.Loginservers loginservers = new Model.Loginservers(); loginservers.Name = Name; loginservers.Ip = Ip; loginservers.Status = Convert.ToInt32(Status); loginservers.Webserverip = Webserverip; bool reval = BLL.LoginserversManager.AddLoginservers(loginservers); if (reval) { return(DAL.ObjectToJson.ObjectsToJson <Loginservers>(loginservers)); } else { return("none"); } }