public void AddMeetup(meetup m) { try { db.Meetups.Add(m); db.SaveChanges(); } catch (Exception ex) { throw ex; } }
public void DeleteMeetup(long meetupId) { try { meetup m = FindMeetup(meetupId); db.Meetups.Remove(m); db.SaveChanges(); } catch (Exception ex) { throw ex; } }