Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 7
0
 public bool Delete(IList <int> idList, iPow.Infrastructure.Data.DataSys.Sys_AdminUser operUser)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 8
0
 public bool Delete(iPow.Infrastructure.Data.DataSys.Sys_NewsInfo entity, iPow.Infrastructure.Data.DataSys.Sys_AdminUser operUser)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 9
0
        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);
        }
Ejemplo n.º 10
0
        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);
        }
Ejemplo n.º 11
0
 public bool Delete(IList <iPow.Infrastructure.Data.DataSys.Sys_HotelPropertyInfo2> entity, iPow.Infrastructure.Data.DataSys.Sys_AdminUser operUser)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 14
0
 public bool Delete(iPow.Infrastructure.Data.DataSys.Sys_ThemeActivityClass entity, iPow.Infrastructure.Data.DataSys.Sys_AdminUser operUser)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 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);
        }