Esempio n. 1
0
 public IActionResult Delete(int Id)
 {
     if (_BlogDAL.Delete(Id))
     {
         return(Content("删除成功!"));
     }
     return(Content("删除失败!.请联系管理员。"));
 }
Esempio n. 2
0
        /// <summary>
        /// 删除某条博客
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public IActionResult Delete(int id)
        {
            int i = BlogDAL.Delete(id);

            if (i > 0)
            {
                return(Content("删除成功!"));
            }
            else
            {
                return(Content("删除失败、请联系管理员!"));
            }
        }
Esempio n. 3
0
 public IActionResult Del(int id)
 {
     bodal.Delete(id);
     return(Redirect("/Adnn1n/Blog/Index"));
 }