public IHttpActionResult DeleteList(int id) { List list = ListsBLL.Get(id); if (list == null) { return(NotFound()); } ListsBLL.Delete(id); return(Ok(list)); }
public ActionResult DeleteConfirmed(int id) { ListsBLL.Delete(id); return(RedirectToAction("Index")); }