public async Task <IActionResult> Edit(int id, [Bind("RucovodstvoFilId,NameFil,Fio,Post,Telephone,Email")] RucovodstvoFil rucovodstvoFil)
        {
            if (id != rucovodstvoFil.RucovodstvoFilId)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(rucovodstvoFil);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!RucovodstvoFilExists(rucovodstvoFil.RucovodstvoFilId))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(rucovodstvoFil));
        }
        public async Task <IActionResult> Create([Bind("RucovodstvoFilId,NameFil,Fio,Post,Telephone,Email")] RucovodstvoFil rucovodstvoFil)
        {
            if (ModelState.IsValid)
            {
                _context.Add(rucovodstvoFil);
                await _context.SaveChangesAsync();

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