Пример #1
0
        public bool AddApplication(Application _application)
        {
            caciDbContent.Application.Add(_application);


            return(caciDbContent.SaveChanges() > 0);
        }
Пример #2
0
        public bool AddClaim(Claim claim)
        {
            caciDbContent.Claim.Add(claim);


            return(caciDbContent.SaveChanges() > 0);
        }
Пример #3
0
        public bool AddCase(Case _case)
        {
            caciDbContent.Case.Add(_case);


            return(caciDbContent.SaveChanges() > 0);
        }
Пример #4
0
        public bool AddSetting(AppSettings setting)
        {
            caciDbContent.AppSettings.Add(setting);


            return(caciDbContent.SaveChanges() > 0);
        }
Пример #5
0
        public bool Add(Role _obj)
        {
            _obj.CreatedDate  = DateTime.Now;
            _obj.ModifiedDate = DateTime.Now;
            caciDbContent.Role.Add(_obj);


            return(caciDbContent.SaveChanges() > 0);
        }
Пример #6
0
        public ATemplate Insert(ATemplate saveMe) // Insert a record
        {
            caciDbContent.ATemplate.Add(saveMe);

            if (caciDbContent.SaveChanges() <= 0)
            {
                throw new DbUpdateException("Unknown error");
            }

            return(saveMe);
        }
Пример #7
0
        public bool Add(RoleClaim _obj)
        {
            caciDbContent.RoleClaim.Add(_obj);

            return(caciDbContent.SaveChanges() > 0);
        }
Пример #8
0
        public bool Add(UserRole _obj)
        {
            caciDbContent.UserRole.Add(_obj);

            return(caciDbContent.SaveChanges() > 0);
        }