コード例 #1
0
 public void AddMeetup(meetup m)
 {
     try
     {
         db.Meetups.Add(m);
         db.SaveChanges();
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
コード例 #2
0
 public void DeleteMeetup(long meetupId)
 {
     try
     {
         meetup m = FindMeetup(meetupId);
         db.Meetups.Remove(m);
         db.SaveChanges();
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }