public async Task <RecordViewModel> GetRecordByTitle(string title, Guid userId) { var entity = await _repository.GetRecordByTitle(title, userId); var result = _mapper.Map <RecordViewModel>(entity); var marker = _mapper.Map <MarkerViewModel>(entity.Location); result.Location.Marker = marker; return(result); }