コード例 #1
0
        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));
        }
コード例 #2
0
        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));
        }
コード例 #3
0
        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));
        }