public bool AddDonation(Donation donation) { using (var entity = new WakeOrWasteEntities()) { entity.Configuration.ProxyCreationEnabled = false; var rs = entity.Donations.Add(donation); entity.SaveChanges(); return rs != null; } }
public bool UpdateDonation(Donation donation) { throw new NotImplementedException(); }