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

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