コード例 #1
0
        public int Add(Meeting meeting)
        {
            try
            {
                meeting.Location = _meetingLocationRepository.GetByName(meeting.Location.Name);
            }
            catch (Exception e) {
                meeting.Location.Id = _meetingLocationRepository.Add(meeting.Location);
            }


            return(_meetingRepository.Add(meeting));
        }
コード例 #2
0
 public int Add(MeetingLocation meetingLocation)
 {
     return(_meetingLocationRepository.Add(meetingLocation));
 }