public ActionResult EditPlayerPayment([Bind(Include = "ID,player_id,clubdeposite_id,billed_date,fee_status")] player_payouts payment) { if (ModelState.IsValid) { db.Entry(payment).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("PlayerPayments", new { id = payment.player_id })); } return(View(payment)); }
//GET finance/DetailsPlayerPayment/5 Show the details of a payment with ID = 5 public ActionResult DetailsPlayerPayment(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } player_payouts player_payouts = db.player_payouts.Find(id); if (player_payouts == null) { return(HttpNotFound()); } return(View(player_payouts)); }