Beispiel #1
0
        public bool Add(string systemName, string description, bool status)
        {
            var system = new THOK.Authority.DbModel.System()
            {
                SystemID    = Guid.NewGuid(),
                SystemName  = systemName,
                Description = description,
                Status      = status
            };

            SystemRepository.Add(system);
            SystemRepository.SaveChanges();
            return(true);
        }
Beispiel #2
0
        public bool Add(string systemName, string description, string status)
        {
            var system = new AUTH_SYSTEM()
            {
                // SYSTEM_ID = Guid.NewGuid().ToString(),
                SYSTEM_ID   = SystemRepository.GetNewID("AUTH_SYSTEM", "SYSTEM_ID"),
                SYSTEM_NAME = systemName,
                DESCRIPTION = description,
                STATUS      = status
            };

            SystemRepository.Add(system);
            SystemRepository.SaveChanges();
            return(true);
        }
Beispiel #3
0
 public void Add(Model.Entity.System obj, DbTransaction transaction = null)
 {
     _systemRepository.Add(obj, transaction);
 }