public void InsertEvent(EventDetails eventDetails) { var _event = _eventRepo.GetById(eventDetails.Id); if (_event == null) { _eventRepo.Insert(eventDetails); } }