Exemple #1
0
        public ActionResult Index()
        {
            var res = xmlParser.ParseXml().ToList();

            itemBuilder.BuildItems(res);

            return(View());
        }
Exemple #2
0
        public JsonResult Items()
        {
            var res        = xmlParser.ParseXml().ToList();
            var itemModels = itemBuilder.BuildItems(res);
            var json       = JsonConvert.SerializeObject(itemModels);

            return(Json(json, JsonRequestBehavior.AllowGet));
        }