public async Task <IActionResult> Edit(long id, [Bind("Id,Name")] BranchStaffType branchStaffType)
        {
            if (id != branchStaffType.Id)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(branchStaffType);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!BranchStaffTypeExists(branchStaffType.Id))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(branchStaffType));
        }
        public async Task <IActionResult> Create([Bind("Id,Name")] BranchStaffType branchStaffType)
        {
            if (ModelState.IsValid)
            {
                _context.Add(branchStaffType);
                await _context.SaveChangesAsync();

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