public Contribution Edit(Contribution contribution)
        {
            _db.Entry(contribution).State = EntityState.Modified;
            _db.SaveChanges();

            return contribution;
        }
        public Contribution Insert(Contribution contribution)
        {
            _db.Contributions.Add(contribution);
            _db.SaveChanges();

            return contribution;
        }
 public static ContributionDTO ContributionToDto(Contribution contribution)
 {
     return new ContributionDTO
     {
         ContributionId = contribution.ContributionId,
         Name = contribution.Name,
         Quantity = contribution.Quantity,
         TypeContributionId = contribution.TypeContributionId,
         PersonId = contribution.PersonId,
         EventId = contribution.EventId,
     };
 }
 public void Remove(Contribution contribution)
 {
     _db.Entry(contribution).State = EntityState.Deleted;
     _db.SaveChanges();
 }