public ActionResult Edit([Bind(Include = "pgo_id,cln_id,pgo_nom,pgo_ntg,pgo_fven,pgo_cseg")] Pago pago) { if (ModelState.IsValid) { PagoBLL.Update(pago); return(RedirectToAction("Index")); } ViewBag.cln_id = new SelectList(ClienteBLL.List(), "cln_id", "cln_tipo", pago.cln_id); return(View(pago)); }
public IHttpActionResult Put(Pago pago) { try { PagoBLL.Update(pago); return(Content(HttpStatusCode.Accepted, "Pago actualizado correctamente")); } catch (Exception ex) { return(BadRequest(ex.Message + pago.ToString())); } }