public Event AddEvent(NewEvent newEvent) { var taskEntity = _autoMapper.Map<Data.Entities.Event>(newEvent); _queryProcessor.AddEvent(taskEntity); var task = _autoMapper.Map<Event>(taskEntity); return task; }
public Event AddEvent(HttpRequestMessage requestMessage, NewEvent newEvent) { var task = _addEventMaintenanceProcessor.AddEvent(newEvent); return task; }