public async Task <IActionResult> Create(TabStandort standort) { if (ModelState.IsValid) { await db.TabStandortSet.AddAsync(standort); await db.DbSave(User, standort); return(RedirectToAction("Index")); } return(View(standort)); }
public async Task <ActionResult> Create(TabBediener bediener) { if (ModelState.IsValid) { await db.TabBedienerSet.AddAsync(bediener); await db.DbSave(User, bediener); return(RedirectToAction("Index")); } BedienerHelper(true); return(View(bediener)); }
public async Task <ActionResult> Create(TabMaschine maschine) { if (ModelState.IsValid) { await db.TabMaschineSet.AddAsync(maschine); await db.DbSave(User, maschine); return(RedirectToAction("Index")); } await MaschineHelper(true); return(View(maschine)); }