public ActionResult Delete(string id)
        {
            INewsDao dao = _factory.NewsDao;

            dao.Delete(dao.Get(id));
            return(Json(new { success = true }));
        }
示例#2
0
 public void Delete(News obj)
 {
     dao.Delete(obj);
 }