public IHttpActionResult Get() { try { List <Pago> todos = PagoBLL.List(); return(Content(HttpStatusCode.OK, todos)); } catch (Exception) { return(BadRequest()); } }
public IHttpActionResult MisMetodosPago(int id) { try { List <Pago> pagos = PagoBLL.List(id); //202 return(Content(HttpStatusCode.OK, pagos)); } catch (Exception ex) { //400 return(BadRequest(ex.Message)); } }
// GET: Pagos public ActionResult Index() { return(View(PagoBLL.List())); }