public async Task <IActionResult> UpdateEmployee(Employee employee)
        {
            _context.Entry(employee).State = EntityState.Modified;
            await _context.SaveChangesAsync();

            return(null);
        }
        public async Task <IActionResult> PutCompany(int id, Company company)
        {
            if (id != company.CompanyId)
            {
                return(BadRequest());
            }

            _context.Entry(company).State = EntityState.Modified;

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!CompanyExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }
 public void Update(ApplicationUser item)
 {
     dbContext.Entry(item).State = EntityState.Modified;
     dbContext.SaveChanges();
 }