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