コード例 #1
0
        public ShowModel Execute(ShowRequest request)
        {
            var result = new ShowModel { Name = request.Name };

            if (!ListsOf.Lists.ContainsKey(request.Name))
            {
                //should throw 404
                return result;
            }

            result.Elements = ListsOf.Lists[request.Name];
            return result;
        }
コード例 #2
0
        public ShowModel Execute(ShowRequest request)
        {
            var result = new ShowModel {
                Name = request.Name
            };

            if (!ListsOf.Lists.ContainsKey(request.Name))
            {
                //should throw 404
                return(result);
            }

            result.Elements = ListsOf.Lists[request.Name];
            return(result);
        }