public IHttpActionResult GetList(int id) { List list = ListsBLL.Get(id); if (list == null) { return(NotFound()); } return(Ok(list)); }
// GET: Lists/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } List list = ListsBLL.Get(id); if (list == null) { return(HttpNotFound()); } return(View(list)); }
// GET: Lists/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } List list = ListsBLL.Get(id); if (list == null) { return(HttpNotFound()); } ViewBag.id_board = new SelectList(db.Board, "id_board", "name_board", list.id_board); return(View(list)); }
// GET: api/Lists public IQueryable <List> GetList() { return(ListsBLL.Get()); }