public ActionResult Delete(string id) { INewsTypeDao dao = _messageDao.NewsTypeDao; dao.Delete(dao.Get(id)); return(Json(new { success = true }, JsonRequestBehavior.AllowGet)); }
private TypeGroupService() { _daoManager = ServiceConfig.GetInstance().DaoManager; _iTypeGroupDao = _daoManager.GetDao(typeof(ITypeGroupDao)) as ITypeGroupDao; _iNewsTypeDao = _daoManager.GetDao(typeof(INewsTypeDao)) as INewsTypeDao; }