コード例 #1
0
 public void ValidateStartDateAndDuration(Meeting meeting, DateTime startDate, int duration)
 {
     var res = meetingRepository.GetMeetinginDuration(startDate, duration,meeting.CreatorUser);
     if (res.Any(m => m.Id!=meeting.Id))
         throw new DuplicateException("Time Of meeting id dublicated", "Meeting", "StartDate , Duration");
 }
コード例 #2
0
 public void Update(Meeting meeting)
 {
     ctx.SaveChanges();
 }
コード例 #3
0
 public void Delete(Meeting meeting)
 {
     ctx.Meetings.Remove(meeting);
     ctx.SaveChanges();
 }
コード例 #4
0
 public void Create(Meeting meeting)
 {
     ctx.Meetings.Add(meeting);
     ctx.SaveChanges();
 }