Ejemplo n.º 1
0
 public void DeleteChurch(Church church)
 {
     _db.Churches.Remove(church);
     _db.SaveChanges();
 }
Ejemplo n.º 2
0
        // TODO:  add options to update only MassTimes, Name, or Coordinates
        public void UpdateChurch(int churchId, IChurch updatedChurch)
        {
            Church churchToUpdate = _db.Churches.Find(churchId);

            churchToUpdate = new Church(updatedChurch);
        }