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)); }
public int Add(MeetingLocation meetingLocation) { return(_meetingLocationRepository.Add(meetingLocation)); }