Example #1
0
 public IHttpActionResult Get()
 {
     try {
         List <Informe> todos = InformeBLL.List();
         return(Content(HttpStatusCode.OK, todos));
     }
     catch (Exception ex) {
         return(Content(HttpStatusCode.BadRequest, ex));
     }
 }
Example #2
0
 // GET: Informes
 public ActionResult Index()
 {
     return(View(InformeBLL.List()));
 }
Example #3
0
 public ActionResult DeleteConfirmed(int id)
 {
     InformeBLL.List();
     return(RedirectToAction("Index"));
 }