Exemplo n.º 1
0
 public async Task <IActionResult> Edit([Bind("Id,Unp,Name,Address,DirectorsName,DirectorsPhone")] Companies companies)
 {
     try
     {
         await _companies.UpdateAsync(companies);
     }
     catch (DbUpdateConcurrencyException)
     {
         if (!await _companies.ItemExists(x => x.Id == companies.Id))
         {
             return(NotFound());
         }
         throw;
     }
     return(PartialView("Create", companies));
 }