Ejemplo n.º 1
0
 public DataResourceController()
 {
     this.dataIOService = new DataIOService();
     this.attendeeService = new AttendeeService();
 }
Ejemplo n.º 2
0
 // POST: /DataResource/ImportFromService
 public ActionResult ImportFromService(FormCollection collection)
 {
     try
     {
         string[] argsUser = collection.GetValues("username");
         string[] argsPassword = collection.GetValues("password");
         DataIOService dataIOService = new DataIOService();
         // import from web service and save it to a file
         ViewBag.Result =  dataIOService.ProcessImportArtistData(argsUser[0], argsPassword[0]);
     }
     catch
     {
     }
     return View();
 }