예제 #1
0
        public ActionResult SendAnalyse(int id)
        {
            var model = new BloodTestResult()
            {
                Donation_Id = id
            };

            return(View(model));
        }
예제 #2
0
        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"));
        }