public Event AddEvent(NewEvent newEvent)
        {
            var taskEntity = _autoMapper.Map<Data.Entities.Event>(newEvent);

            _queryProcessor.AddEvent(taskEntity);

            var task = _autoMapper.Map<Event>(taskEntity);

            return task;
        }
示例#2
0
        public Event AddEvent(HttpRequestMessage requestMessage, NewEvent newEvent)
        {
            var task = _addEventMaintenanceProcessor.AddEvent(newEvent);

            return task;
        }