public ActionResult Delete(string id)
        {
            INewsTypeDao dao = _messageDao.NewsTypeDao;

            dao.Delete(dao.Get(id));
            return(Json(new { success = true }, JsonRequestBehavior.AllowGet));
        }
Esempio n. 2
0
 private TypeGroupService()
 {
     _daoManager = ServiceConfig.GetInstance().DaoManager;
     _iTypeGroupDao = _daoManager.GetDao(typeof(ITypeGroupDao)) as ITypeGroupDao;
     _iNewsTypeDao = _daoManager.GetDao(typeof(INewsTypeDao)) as INewsTypeDao;
 }
Esempio n. 3
0
 private TypeGroupService()
 {
     _daoManager    = ServiceConfig.GetInstance().DaoManager;
     _iTypeGroupDao = _daoManager.GetDao(typeof(ITypeGroupDao)) as ITypeGroupDao;
     _iNewsTypeDao  = _daoManager.GetDao(typeof(INewsTypeDao)) as INewsTypeDao;
 }