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));
        }
Example #2
0
 public void Update(DoctorContribution doctorContribution)
 {
     db.Entry(doctorContribution).State = EntityState.Modified;
     db.SaveChanges();
 }
Example #3
0
 public void Add(DoctorContribution doctorContribution)
 {
     db.DoctorContributions.Add(doctorContribution);
     db.SaveChanges();
 }