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 bool DeleteLoginService(int Id) { if (Session[Util.ProjectConfig.ADMINUSER] == null) { return(false); } return(LoginserversManager.DeleteLoginserversByPK(Id)); }
public string GetloginserversAll() { if (Session[Util.ProjectConfig.ADMINUSER] == null) { return(""); } return(LoginserversManager.GetloginserversAll()); }
public bool UpdateLoginServiceStatus(string status, string Id) { if (Session[Util.ProjectConfig.ADMINUSER] == null) { return(false); } int Status = Convert.ToInt32(status); int ID = Convert.ToInt32(Id); return(LoginserversManager.UpdateLoginServiceStatus(Status, ID)); }