Example #1
0
        public async Task <IActionResult> Edit(string id, [Bind("Seq,Id,Name,Kana,Ip,Status,Place,Back,StartDay,StartTime,EndDay,Ok,EndTime,Phone,Mail1,Mail2,Memo1,Memo2,Memo3,Memo4,Memo5,Message,UpdateDay,UpdateTime,FullName,Business,UpdateIp,InterPhone")] Wb wb)
        {
            if (id != wb.Seq)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(wb);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!WbExists(wb.Seq))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(wb));
        }