public void UpdateThrombocyte(Thrombocyte thrombocyte) { using (UnitOfWork uow = new UnitOfWork()) { uow.ThrombocyteRepository.Update(thrombocyte); uow.Save(); } }
public void SeparateBloodBag(BloodBag bloodBag, Thrombocyte t, Plasma p, RedBloodCell r) { using (UnitOfWork uow = new UnitOfWork()) { bloodBag.Stage = BloodBagStage.Separation; bloodBag.Status = BloodBagStatus.Destroyed; uow.BloodBagRepository.Update(bloodBag); uow.ThrombocyteRepository.Add(t); uow.PlasmaRepository.Add(p); uow.RedBloodCellRepository.Add(r); uow.Save(); } }