public async Task <IActionResult> Edit(int id, [Bind("PhasingCodeId,PhasingCodeName")] LookUpPhasingCodeType lookUpPhasingCodeType)
        {
            if (id != lookUpPhasingCodeType.PhasingCodeId)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(lookUpPhasingCodeType);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!LookUpPhasingCodeTypeExists(lookUpPhasingCodeType.PhasingCodeId))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(lookUpPhasingCodeType));
        }
        public async Task <IActionResult> Create([Bind("PhasingCodeId,PhasingCodeName")] LookUpPhasingCodeType lookUpPhasingCodeType)
        {
            if (ModelState.IsValid)
            {
                _context.Add(lookUpPhasingCodeType);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(lookUpPhasingCodeType));
        }