예제 #1
0
        //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);
        }
예제 #2
0
        // GET: RealBooks/Delete/5
        public ActionResult Delete(int id)
        {
            EditoraBusiness editoraBusiness = new EditoraBusiness();

            var editora = editoraBusiness.ObterEditora(id);

            return(View(editora));
        }