Esempio n. 1
0
        public GetLayoutOptionsResponse Get(GetLayoutOptionsRequest request)
        {
            var results = repository
                .AsQueryable<LayoutOption>(o => o.Layout.Id == request.LayoutId)
                .Select(o => new OptionModel
                    {
                        Key = o.Key,
                        DefaultValue = o.DefaultValue,
                        Type = (OptionType)(int)o.Type
                    })
                .ToDataListResponse(request);

            return new GetLayoutOptionsResponse { Data = results };
        }
        public GetLayoutOptionsResponse Get(GetLayoutOptionsRequest request)
        {
            var results = LayoutServiceHelper.GetLayoutOptionsResponse(repository, request.LayoutId, request);

            return new GetLayoutOptionsResponse { Data = results };
        }