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"); }
public void Update(Meeting meeting) { ctx.SaveChanges(); }
public void Delete(Meeting meeting) { ctx.Meetings.Remove(meeting); ctx.SaveChanges(); }
public void Create(Meeting meeting) { ctx.Meetings.Add(meeting); ctx.SaveChanges(); }