public IHttpActionResult DeleteList(int id)
        {
            List list = ListsBLL.Get(id);

            if (list == null)
            {
                return(NotFound());
            }

            ListsBLL.Delete(id);

            return(Ok(list));
        }
Esempio n. 2
0
 public ActionResult DeleteConfirmed(int id)
 {
     ListsBLL.Delete(id);
     return(RedirectToAction("Index"));
 }