public ActionResult Index() { var res = xmlParser.ParseXml().ToList(); itemBuilder.BuildItems(res); return(View()); }
public JsonResult Items() { var res = xmlParser.ParseXml().ToList(); var itemModels = itemBuilder.BuildItems(res); var json = JsonConvert.SerializeObject(itemModels); return(Json(json, JsonRequestBehavior.AllowGet)); }