public bool Modify(iPow.Infrastructure.Data.DataSys.Sys_SightInfoSort entity, iPow.Infrastructure.Data.DataSys.Sys_AdminUser operUser) { var res = false; if (entity != null && entity.Id > 0) { try { sightInfoSortRepository.Modify(entity); res = true; } catch (Exception ex) { } } return(res); }
public bool Add(iPow.Infrastructure.Data.DataSys.Sys_SightInfoSort enitty, iPow.Infrastructure.Data.DataSys.Sys_AdminUser operUser) { var res = false; if (enitty != null) { try { sightInfoSortRepository.Add(enitty); sightInfoSortRepository.Uow.Commit(); res = true; } catch (Exception ex) { } } return(res); }