public async Task <LocationEditDto> GetLocationForEdit(EntityDto input) { var location = await _locationManager.FindLocationAsync(input.Id); if (location == null) { throw new UserFriendlyException(L("InvalidLocation")); } var dto = ObjectMapper.Map <LocationEditDto>(location); dto.TimeTableJson = location.GetSettings(); //var items = ObjectMapper.Map<LocationEditDto>(location) return(dto); }