示例#1
0
        public ActionResult Delete(int id)
        {
            var Blacklist = BlacklistService.GetModels(p => p.id == id).FirstOrDefault();

            if (BlacklistService.Delete(Blacklist))
            {
                return(Redirect("Blacklist"));
            }
            else
            {
                return(Content("no"));
            }
        }
示例#2
0
 private void DeleteBlacklist(int id)
 {
     _blacklistService.Delete(id);
 }
示例#3
0
 public void DeleteBlacklist(int id)
 {
     _blacklistService.Delete(id);
 }