public async Task <IActionResult> Edit(int id, [Bind("ID,CompanyName,StartDate,EndDate,Ocupation")] Experience experience)
        {
            if (id != experience.Id)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    await repository.UpdateAsync(experience);
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!await repository.ExistAsync(id))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(experience));
        }