public DataResourceController() { this.dataIOService = new DataIOService(); this.attendeeService = new AttendeeService(); }
// 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(); }