public ActionResult Details(string id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } DoctorContribution doctorContribution = _contributionRepository.FindByDoctorPaymentId(id); if (doctorContribution == null) { return(HttpNotFound()); } ViewBag.OrderProduct = _orderRepository.Find(doctorContribution.OrderId).OrderProducts; return(View(doctorContribution)); }
public void Update(DoctorContribution doctorContribution) { db.Entry(doctorContribution).State = EntityState.Modified; db.SaveChanges(); }
public void Add(DoctorContribution doctorContribution) { db.DoctorContributions.Add(doctorContribution); db.SaveChanges(); }