public static int addsystemprocess(SystemProcessThreadModel obj) { ControlPanel.Core.Entities.SystemProcess sysprocesentity = new ControlPanel.Core.Entities.SystemProcess(); ControlPanel.Repository.SystemProcessRepository sprepo = new ControlPanel.Repository.SystemProcessRepository(); sysprocesentity.Name = obj.SystemProcessName; sysprocesentity.Description = obj.SystemProcessDesc; sysprocesentity.Enabled = true; sysprocesentity.DisplayOrder = 10; var entry = sprepo.InsertSystemProcess(sysprocesentity); return entry.SystemProcessId; }
public static int addsystemprocess(SystemProcessThreadModel obj) { ControlPanel.Core.Entities.SystemProcess sysprocesentity = new ControlPanel.Core.Entities.SystemProcess(); ControlPanel.Repository.SystemProcessRepository sprepo = new ControlPanel.Repository.SystemProcessRepository(); sysprocesentity.Name = obj.SystemProcessName; sysprocesentity.Description = obj.SystemProcessDesc; sysprocesentity.Enabled = true; sysprocesentity.DisplayOrder = 10; var entry = sprepo.InsertSystemProcess(sysprocesentity); return(entry.SystemProcessId); }
public static int addsystemprocess(SystemProcessThreadModel obj) { ControlPanel.Core.Entities.SystemProcess sysprocesentity = new ControlPanel.Core.Entities.SystemProcess(); ControlPanel.Repository.SystemProcessRepository sprepo = new ControlPanel.Repository.SystemProcessRepository(); sysprocesentity.Name = obj.SystemProcessName; sysprocesentity.Description = obj.SystemProcessDesc; sysprocesentity.Enabled = true; sysprocesentity.DisplayOrder = 10; sysprocesentity.Ip = obj.SystemProcessIp; if (obj.SystemProcessPort != null && obj.SystemProcessPort != "") { sysprocesentity.Port = Convert.ToInt16(obj.SystemProcessPort); } var entry = sprepo.InsertSystemProcess(sysprocesentity); return entry.SystemProcessId; }
public static int addsystemprocess(SystemProcessThreadModel obj) { ControlPanel.Core.Entities.SystemProcess sysprocesentity = new ControlPanel.Core.Entities.SystemProcess(); ControlPanel.Repository.SystemProcessRepository sprepo = new ControlPanel.Repository.SystemProcessRepository(); sysprocesentity.Name = obj.SystemProcessName; sysprocesentity.Description = obj.SystemProcessDesc; sysprocesentity.Enabled = true; sysprocesentity.DisplayOrder = 10; sysprocesentity.Ip = obj.SystemProcessIp; if (obj.SystemProcessPort != null && obj.SystemProcessPort != "") { sysprocesentity.Port = Convert.ToInt16(obj.SystemProcessPort); } var entry = sprepo.InsertSystemProcess(sysprocesentity); return(entry.SystemProcessId); }