public bool AddNews(TM_SaaS_OA_EFModel.T_PF_NEWS model) { try { bool result = false; result = _newsbll.AddEntity(model); return(result); } catch (Exception ex) { throw new Exception("添加新闻异常:" + ex.Message); } }
public bool UpdateNews(TM_SaaS_OA_EFModel.T_PF_NEWS model, List <TM_SaaS_OA_EFModel.T_PF_DISTRIBUTEUSER> _viewer) { try { bool result = false; result = _newsbll.UpdateEntity(model, _viewer); return(result); } catch (Exception ex) { throw new Exception("添加新闻异常:" + ex.Message); } }