public async Task <IActionResult> Edit(Guid id, [Bind("Position,Salare,Status,Id,FIO,Adress,NumberTelephone,Email,DataEmployment")] OtherEmloyee otherEmloyee)
        {
            if (id != otherEmloyee.Id)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(otherEmloyee);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!OtherEmloyeeExists(otherEmloyee.Id))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(otherEmloyee));
        }
        public async Task <IActionResult> Create([Bind("Position,Salare,Status,Id,FIO,Adress,NumberTelephone,Email,DataEmployment")] OtherEmloyee otherEmloyee)
        {
            if (ModelState.IsValid)
            {
                otherEmloyee.Id = Guid.NewGuid();
                _context.Add(otherEmloyee);
                await _context.SaveChangesAsync();

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