public ActionResult SendAnalyse(int id) { var model = new BloodTestResult() { Donation_Id = id }; return(View(model)); }
public ActionResult SendAnalyse(BloodTestResult bloodTestResult) { var donation = unitOfWork.DonationRepository.Get(x => x.Id == bloodTestResult.Donation_Id).First(); donation.Succesfull = Common.Enums.Stage.Succesfull; unitOfWork.BloodTestResultRepository.Insert(bloodTestResult); unitOfWork.Save(); return(RedirectToAction("Donations")); }