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")); } }
private void DeleteBlacklist(int id) { _blacklistService.Delete(id); }
public void DeleteBlacklist(int id) { _blacklistService.Delete(id); }