//public JsonResult<List<Editora>> Get() //{ // editora = new EditoraBusiness(); // var lista = editora.ListarEditoras(); // return Json(lista, JsonRequestBehavior.AllowGet); //} // GET: api/WebApiEditora/5 public Editora Get(int id) { editora = new EditoraBusiness(); var result = editora.ObterEditora(id); return(result); }
// GET: RealBooks/Delete/5 public ActionResult Delete(int id) { EditoraBusiness editoraBusiness = new EditoraBusiness(); var editora = editoraBusiness.ObterEditora(id); return(View(editora)); }