コード例 #1
0
ファイル: BranchAppService.cs プロジェクト: BugBear96/VOU
        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);
        }