コード例 #1
0
        public bool Add(iPow.Infrastructure.Data.DataSys.Sys_MvcControllerClass enitty, iPow.Infrastructure.Data.DataSys.Sys_AdminUser operUser)
        {
            var res = false;

            if (enitty != null)
            {
                try
                {
                    mvcControllerClassRepository.Add(enitty);
                    mvcControllerClassRepository.Uow.Commit();
                    res = true;
                }
                catch (Exception ex)
                {
                }
            }
            return(res);
        }
コード例 #2
0
        public bool Add(IList <iPow.Infrastructure.Data.DataSys.Sys_MvcControllerClass> entity, iPow.Infrastructure.Data.DataSys.Sys_AdminUser operUser)
        {
            var res = false;

            if (entity != null && entity.Count > 0)
            {
                try
                {
                    foreach (var item in entity)
                    {
                        if (item != null)
                        {
                            mvcControllerClassRepository.Add(item);
                        }
                    }
                    mvcControllerClassRepository.Uow.Commit();
                    res = true;
                }
                catch (Exception ex)
                {
                }
            }
            return(res);
        }
コード例 #3
0
        public bool Delete(IList <iPow.Infrastructure.Data.DataSys.Sys_MvcController> entity, iPow.Infrastructure.Data.DataSys.Sys_AdminUser operUser)
        {
            var res = false;

            if (entity != null && entity.Count > 0)
            {
                try
                {
                    foreach (var item in entity)
                    {
                        if (item != null)
                        {
                            item.State = false;
                            mvcControllerRepository.Modify(item);
                        }
                    }
                    res = true;
                }
                catch (Exception ex)
                {
                }
            }
            return(res);
        }
コード例 #4
0
        public bool Modify(iPow.Infrastructure.Data.DataSys.Sys_MvcControllerClass entity, iPow.Infrastructure.Data.DataSys.Sys_AdminUser operUser)
        {
            var res = false;

            if (entity != null && entity.Id > 0)
            {
                try
                {
                    mvcControllerClassRepository.Modify(entity);
                    res = true;
                }
                catch (Exception ex)
                {
                }
            }
            return(res);
        }
コード例 #5
0
        public bool DeleteTrue(IList <iPow.Infrastructure.Data.DataSys.Sys_NewsInfo> entity, iPow.Infrastructure.Data.DataSys.Sys_AdminUser operUser)
        {
            var res = false;

            if (entity != null && entity.Count > 0)
            {
                try
                {
                    foreach (var item in entity)
                    {
                        if (item != null)
                        {
                            newsInfoRepository.Delete(item);
                        }
                    }
                    newsInfoRepository.Uow.Commit();
                    res = true;
                }
                catch (Exception ex)
                {
                }
            }
            return(res);
        }
コード例 #6
0
        public bool Delete(iPow.Infrastructure.Data.DataSys.Sys_MvcController entity, iPow.Infrastructure.Data.DataSys.Sys_AdminUser operUser)
        {
            var res = false;

            if (entity != null)
            {
                try
                {
                    entity.State = false;
                    mvcControllerRepository.Modify(entity);
                    res = true;
                }
                catch (Exception ex)
                {
                }
            }
            return(res);
        }
コード例 #7
0
 public bool Delete(IList <int> idList, iPow.Infrastructure.Data.DataSys.Sys_AdminUser operUser)
 {
     throw new NotImplementedException();
 }
コード例 #8
0
 public bool Delete(iPow.Infrastructure.Data.DataSys.Sys_NewsInfo entity, iPow.Infrastructure.Data.DataSys.Sys_AdminUser operUser)
 {
     throw new NotImplementedException();
 }
コード例 #9
0
ファイル: UserRolesService.cs プロジェクト: JPomichael/IPOW
        public bool DeleteTrue(iPow.Infrastructure.Data.DataSys.Sys_UserRoles entity, iPow.Infrastructure.Data.DataSys.Sys_AdminUser operUser)
        {
            var res = false;

            if (entity != null)
            {
                try
                {
                    userRolesRepository.Delete(entity);
                    userRolesRepository.Uow.Commit();
                    res = true;
                }
                catch (Exception ex)
                {
                }
            }
            return(res);
        }
コード例 #10
0
ファイル: PicCommService.cs プロジェクト: JPomichael/IPOW
        public bool Modify(IList <iPow.Infrastructure.Data.DataSys.Sys_PicComm> entity, iPow.Infrastructure.Data.DataSys.Sys_AdminUser operUser)
        {
            var res = false;

            if (entity != null && entity.Count > 0)
            {
                try
                {
                    foreach (var item in entity)
                    {
                        if (item != null)
                        {
                            picCommRepository.Modify(item);
                        }
                    }
                    res = true;
                }
                catch (Exception ex)
                {
                }
            }
            return(res);
        }
コード例 #11
0
 public bool Delete(IList <iPow.Infrastructure.Data.DataSys.Sys_HotelPropertyInfo2> entity, iPow.Infrastructure.Data.DataSys.Sys_AdminUser operUser)
 {
     throw new NotImplementedException();
 }
コード例 #12
0
        public bool Add(iPow.Infrastructure.Data.DataSys.Sys_HotelPropertyInfo2 enitty, iPow.Infrastructure.Data.DataSys.Sys_AdminUser operUser)
        {
            var res = false;

            if (enitty != null)
            {
                try
                {
                    hotelPropertyInfo2Repository.Add(enitty);
                    hotelPropertyInfo2Repository.Uow.Commit();
                    res = true;
                }
                catch (Exception ex)
                {
                }
            }
            return(res);
        }
コード例 #13
0
        public bool Modify(iPow.Infrastructure.Data.DataSys.Sys_HotelPropertyInfo2 entity, iPow.Infrastructure.Data.DataSys.Sys_AdminUser operUser)
        {
            var res = false;

            if (entity != null && entity.ID > 0)
            {
                try
                {
                    hotelPropertyInfo2Repository.Modify(entity);
                    res = true;
                }
                catch (Exception ex)
                {
                }
            }
            return(res);
        }
コード例 #14
0
 public bool Delete(iPow.Infrastructure.Data.DataSys.Sys_ThemeActivityClass entity, iPow.Infrastructure.Data.DataSys.Sys_AdminUser operUser)
 {
     throw new NotImplementedException();
 }
コード例 #15
0
        public bool Modify(iPow.Infrastructure.Data.DataSys.Sys_ThemeActivityClass entity, iPow.Infrastructure.Data.DataSys.Sys_AdminUser operUser)
        {
            var res = false;

            if (entity != null && entity.ClassID > 0)
            {
                try
                {
                    themeActivityClassRepository.Modify(entity);
                    res = true;
                }
                catch (Exception ex)
                {
                }
            }
            return(res);
        }