コード例 #1
0
        public IHttpActionResult DeleteList(int id)
        {
            List list = ListsBLL.Get(id);

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

            ListsBLL.Delete(id);

            return(Ok(list));
        }
コード例 #2
0
 public ActionResult DeleteConfirmed(int id)
 {
     ListsBLL.Delete(id);
     return(RedirectToAction("Index"));
 }