public IHttpActionResult GetItemById(long id) { ItemBO item = itemBLL.GetItemById(id); if (item == null) { return(BadRequest()); } return(Ok(item)); }
public ActionResult Details(long id) { Item item = itemBLL.GetItemById(id); return(View(item)); }