private void Repo_CreateOrUpdateLogEntry(ISaveRepository repo, LogEntryViewModel Entry) { var en = mapper.Map <LogEntryViewModel, LogEntry>(Entry); en = repo.CreateOrUpdateLogEntry(en).Result; Entry.Id = en.Id; }