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; }
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); }