Пример #1
0
 //
 // GET: /Home/Regret
 public ActionResult Regret()
 {
     Datacollector d = new Datacollector();
     ArticleData data = d.RegretData();
     return View("Datacollect", data);
 }
Пример #2
0
 //
 // GET: /Home/Datareceiver
 public string Datareceiver(int id, int type)
 {
     Datacollector d = new Datacollector();
     d.AddData(id, type);
     return "Added as type: " + Datacollector.TYPES[type];
 }
Пример #3
0
 //
 // GET: /Home/FinalResult
 public string FinalResult()
 {
     Datacollector d = new Datacollector();
     return d.PrintData();
 }
Пример #4
0
 //
 // GET: /Home/Datacollection
 public ActionResult Datacollect(string url = "")
 {
     Datacollector d = new Datacollector();
     ArticleData toAnalyze = d.Begin(url);
     return View(toAnalyze);
 }