public JsonResult AddJsEntryOnly(Person person) { return Json(person, JsonRequestBehavior.AllowGet); }
public JsonResult AddTsEntryAndName(Person person, string name) { return Json(new Auto() { Marke = name }, JsonRequestBehavior.AllowGet); }
public JsonResult AddJsEntryAndParams(Person person, string name, string vorname) { return Json(new Auto() { Marke = name }, JsonRequestBehavior.AllowGet); }
public FileResult GetDownloadPerson(int personId, Person person) { var fileContent = Encoding.ASCII.GetBytes(string.Format("Das ist ein Test Download für die Person: {0} mit dem Passwort: {1} und der ID: {2}", person.Name, person.Passwort, personId)); return File(fileContent, "text/text", "TestDL.txt"); }
public FileResult GetDownload(int personId, Person person) { var fileContent = Encoding.ASCII.GetBytes("Das ist ein Test Download"); return File(fileContent, "text/text", "TestDL.txt"); }
public ActionResult AddOrUpdatePerson(Person person) { return Json(person, JsonRequestBehavior.AllowGet); }
public Auto() { Marke = "BMW"; Alter = 5; Eigentuemer = new Person(); }