예제 #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);
 }