public ActionResult Edit(DonationDonorEntity donationDonorEntity)
        {
            if (ModelState.IsValid)
            {
                DonationDonorEntity toUpdate = unitOfWork.DonationDonorEntityRepository.GetByID(donationDonorEntity.DonationDonorEntityID);
                toUpdate.Title = donationDonorEntity.Title.Trim();
                toUpdate.Active = donationDonorEntity.Active;
                unitOfWork.DonationDonorEntityRepository.Update(toUpdate);
                unitOfWork.Save();
                return RedirectToAction("Index");
            }

            return View(donationDonorEntity);
        }
        public ActionResult DonationDonorEntityPeopleCreate(DonorEntityPersonDonationViewModel personDonation)
        {
            DonationDonorEntity newDonorEntity = new DonationDonorEntity();
            newDonorEntity.Title = DonorEntityTitle(personDonation);
            newDonorEntity.Active = personDonation.Active;
            int[] selectedPersonPrimaryInfoIDs = personDonation.People.Select(x => Convert.ToInt32(x.Value)).ToArray<int>();

            newDonorEntity.PersonPrimaryInfoes = unitOfWork.PersonPrimaryInfoRepository.Get(x => selectedPersonPrimaryInfoIDs.Contains(x.PersonPrimaryInfoID)).ToArray();

            unitOfWork.DonationDonorEntityRepository.Insert(newDonorEntity);
            unitOfWork.Save();

            return RedirectToAction("Index");
        }