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); }
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); }
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); }
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); }
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); }
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); }
public bool Delete(IList <int> idList, iPow.Infrastructure.Data.DataSys.Sys_AdminUser operUser) { throw new NotImplementedException(); }
public bool Delete(iPow.Infrastructure.Data.DataSys.Sys_NewsInfo entity, iPow.Infrastructure.Data.DataSys.Sys_AdminUser operUser) { throw new NotImplementedException(); }
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); }
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); }
public bool Delete(IList <iPow.Infrastructure.Data.DataSys.Sys_HotelPropertyInfo2> entity, iPow.Infrastructure.Data.DataSys.Sys_AdminUser operUser) { throw new NotImplementedException(); }
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); }
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); }
public bool Delete(iPow.Infrastructure.Data.DataSys.Sys_ThemeActivityClass entity, iPow.Infrastructure.Data.DataSys.Sys_AdminUser operUser) { throw new NotImplementedException(); }
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); }