Esempio n. 1
0
 /// <summary>
 /// 发布应用 14-09-17 By 唐有炜
 /// </summary>
 /// <param name="app"></param>
 /// <returns></returns>
 public bool AddApp(TFunApp app)
 {
     try
     {
         FunAppDao.InsertEntity(app);
         LogHelper.Debug("应用发布成功。");
         return true;
     }
     catch (Exception ex)
     {
         LogHelper.Error("应用发布失败:", ex);
         return false;
     }
 }
Esempio n. 2
0
 /// <summary>
 /// 修改实体
 /// </summary>
 /// <param name="entity">实体对象</param>
 public bool UpadateEntity(TFunApp entity)
 {
     using (teaCRMDBContext db=new teaCRMDBContext())
     {
        int rows= db.TFunApps.Update(entity);
        if (rows > 0)
         {
             return true;
         }
         else
         {
             return false;
         }
     }
 }