public ServiceOrderDetailEntity Update (ServiceOrderDetailEntity entity) { try { _serviceorderdetailRepository.Update(entity); return entity; } catch (Exception e) { _log.Error(e,"数据库操作出错"); return null; } }
public bool Delete(ServiceOrderDetailEntity entity) { try { _serviceorderdetailRepository.Delete(entity); return true; } catch (Exception e) { _log.Error(e,"数据库操作出错"); return false; } }